Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][HTML]Tło i wyśrodkowanie diva
Turson
post
Post #1





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

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


Mój CSS:
  1. body{
  2. background: url(bg.png) repeat;
  3. font-family: Arial, Verdana, Helvetica, sans-serif;
  4. font-size: 75%;
  5. margin: 0px;
  6. color: #000000;
  7. }
  8. .menu_gora {
  9. background: url(menugora.jpg) repeat-x top;
  10.  
  11. height: 80;
  12. padding: 5px;
  13.  
  14. }
  15. .logo {
  16. margin: 10;
  17.  
  18.  
  19. }
  20. .main {
  21. background: url(kwadratin.jpg) repeat-x;
  22. position: absolute;
  23. margin-left: auto;
  24. margin-right: auto;
  25. vertical-align: top;
  26.  
  27.  
  28.  
  29. }

HTML:
  1. <body class="body" id="body">
  2.  
  3. <div id="menu_gora" class="menu_gora"></div>
  4. <div id="logo" class="logo"><center><img src="logo.jpg"></center></div>
  5. <div id="main" class="main"></div>


Pierwszy problem, to to, że div "main" nie wyświetla się to tło, które ma.
Drugi problem, div "main" nie jest wyśrodkowany
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 21.08.2025 - 22:49