Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css] nie mogę wycentrować diva pod ie
Arek00
post
Post #1





Grupa: Zarejestrowani
Postów: 177
Pomógł: 0
Dołączył: 8.11.2005

Ostrzeżenie: (0%)
-----


banalny przykład: jeden div. pod ff wyświetla się prawidłowo na środku strony a pod ie po lewo... działająca strona: http://wmd6.ovh.org/test/

kod strony:
  1. <meta http-equiv="Content-Type" content="text/html;CHARSET=utf-8">
  2. <link href="stylesheet.css" rel="stylesheet" type="text/css">
  3. </head>
  4.  
  5.  
  6. <div class="main">
  7. test asdf asdf
  8. </div>
  9.  
  10. </body>
  11. </html>


css:
Kod
body {
     background-color: #6B9FD0;
     color: #ffffff;
     font-family: Verdana, Arial, Helvetica, sans-serif;
     font-size: 10px;
}
.main {
     margin: auto;
     width: 825px;
     background: #476B8D;
     padding: 10px;
     font-size: 15px;
}


jak to poprawić?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.09.2025 - 08:38