Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18

Deprecated: Function eregi_replace() is deprecated in /home/jcmouse/public_html/app/code/include/model/database/pregunta.php on line 161

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18
Centrar DIV dentro otro DIV - Code Army!
Te encuentras en el foro de CSS

Centrar DIV dentro otro DIV


Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18
problem
16/12/2012 11:42
yachaywasi
Rango: Capitan
01/10/2011 01:17
Bolivia
4
0
Fecha de ingreso
Ubicacion
Preguntas
Respuestas

Como puedo centrar un DIV en el centro de otro div osea

  1. |----------------|
  2. | |
  3. | |---------| |
  4. | | | |
  5. | |---------| |
  6. | |
  7. | |
  8. |----------------|

problem
 
31/01/2013 12:47
Ranking: 1
Luchox
Rango : Soldado
31/01/2013 12:42
Argentina
0
2
Fecha de ingreso
Ubicacion
Preguntas
Respuestas

Pones el div interior en un tamaño fijo que tiene que ser menor que el tamaño del div exterior. Entonces al div interior le aplicas usando css o en el mismo html la propiedad margin,seria algo como lo siguiente usando un class css.

.alinear-div-centro {
margin-left: auto;
margin-right: auto;
}

Entonces se va al medio.

¡Saludos!

¿Fue este post útil para usted?
.
X

Se parte de Code Army!

Esta acción es solo para usuarios registrados