texto: color de fondo del mismo tamaño

Mi sitio web http://maximearchambault.com

I will like to have the same color background size for my 3 section, commercial, personal project and info / contact. The blue need to be 180 pixels.

/* section title */
#index span.section_title,
#index span.section_title a {  color: #000000; font-weight: bold; background: #00FFFF; }

This is located in my style.css.

preguntado el 28 de agosto de 12 a las 14:08

3 Respuestas

Color has no size. If you want to enforce certain measures, use width (o height) respectively, i.e. width: 180px;

Respondido 28 ago 12, 14:08

on line 75 of your style css -

#index span.section_title, #index span.section_title a {

color: black;
font-weight: bold;
background: cyan;
width: 180px; //add this
display: block; ///add this
}

you may want to add it to the span only, in which case add a new rule -

#index span.section_title {
        width: 180px; //add this
        display: block; ///add this
}

Respondido 28 ago 12, 14:08

Solo intenta esto

#index ul.section {
  font-size: 10px;
  margin-bottom: 1em;
  border: 1px solid #636363;
  background: cyan;
  width: 180px;
}

Respondido 28 ago 12, 14:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.