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
 
Start new topic
Odpowiedzi
kamil4u
post
Post #2





Grupa: Zarejestrowani
Postów: 2 350
Pomógł: 512
Dołączył: 4.01.2009
Skąd: Wrocław / Świdnica

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


Albo (IMO lepszy sposób) dodaj Doctype(strict) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
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: 6.10.2025 - 17:55