
Mas eu sei que a galera vai ajudar

Quero fazer com que uma div de 500 pixels de largura fique centralizada horizontal e verticalmente. A primeira parte eu já consegui, mas a segunda não teve jeito.
Desde já, valeu

Posted 17/07/2005, 23:05
Posted 18/07/2005, 09:41
#meio { position:absolute; top:50%; left:50%; width:500px; height:500px; margin-left:-250px; margin-top:-250px; }
Conheça meu blog para Aprender Laravel (Framework PHP)
Posted 18/07/2005, 10:00
<html> <head> <title>CenterDIV</title> <style type="text/css"> .meio { position: absolute; top: 50%; left: 50%; width: 500px; height: 100px; margin-left: -250px; margin-top: -250px; background-color: #ccc } </style> </head> <body> <div class="meio">Rustin</div> </body> </html>
Posted 18/07/2005, 13:06
.meio { position: absolute; top: 50%; left: 50%; width: 500px; height: 100px; margin-left: -250px; margin-top: -50px; background-color: #ccc }
Conheça meu blog para Aprender Laravel (Framework PHP)
Posted 18/07/2005, 13:43
Posted 18/07/2005, 23:38
Conheça meu blog para Aprender Laravel (Framework PHP)
Posted 20/07/2005, 17:36
Posted 23/09/2017, 08:41
Posted 08/10/2017, 19:56
Posted 09/10/2017, 01:11
Posted 26/10/2017, 10:41
Posted 27/10/2017, 07:50
Posted 06/11/2017, 10:26
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)