Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][CSS] Niezrozumiały margines
Ayrox
post 8.10.2008, 17:48:53
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 23.06.2008

Ostrzeżenie: (10%)
X----


  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
Go to the top of the page
+Quote Post
kefir1989
post 8.10.2008, 18:01:52
Post #2





Grupa: Zarejestrowani
Postów: 15
Pomógł: 1
Dołączył: 1.11.2007

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


Dodaj w stylach:
  1. body{
  2. margin:0 auto;
  3. }

Powinno pomóc.


--------------------
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 4.07.2025 - 23:53