Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][CSS] Niezrozumiały margines
Forum PHP.pl > Forum > Przedszkole
Ayrox
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <title>Acc</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  6. <link rel="stylesheet" type="text/css" href="styles/main.css" />
  7. <link rel="shortcut icon" href="images/ikona.ico" />
  8.  
  9. </head>
  10.  
  11.  
  12.  
  13. <div class="topbox">ac</div>
  14. Strona Główna ! 
  15.  
  16.  
  17.  
  18.  
  19. </body>
  20. </html>
  21.  
  22.  
  23. div.topbox {width: 900px; margin-left: auto; margin-right: auto; height: 28px; line-height: 28px; background-image: url(../images/top.gif);}


tak jak w temacie robi mi to dziwny margin pomiędzy div topbox a górą strony w Operze z 6px a w Ie z 15
kefir1989
Dodaj w stylach:
  1. body{
  2. margin:0 auto;
  3. }

Powinno pomóc.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.