Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css] Div przeskakuje do nowego wiersza
poxrimex
post 19.01.2008, 15:36:02
Post #1





Grupa: Zarejestrowani
Postów: 368
Pomógł: 2
Dołączył: 23.09.2007

Ostrzeżenie: (60%)
XXX--


Witam!

Mam problem, gdyż div "tresc" przeskakuje mi do nowego wiersza zamiast byc w tym samym co div "menu". W Htmlu nic nie ma innego tylko kilka literek oraz same divy. A oto plik css:

  1. html, body
  2. {
  3. color: #494949;
  4. font-family: Tahoma, Helvetica, Verdana, sans-serif;
  5. text-align: center;
  6. font-size: 12px;
  7. margin-top: 0;
  8. margin-left: 0;
  9. margin-right: 0;
  10. margin-bottom: 0;
  11. }
  12.  
  13. #site
  14. {
  15. background-color: black;
  16. width: 800;
  17. margin-top: 80;
  18. margin-left: auto;
  19. margin-right: auto;
  20. }
  21.  
  22. #menu
  23. {
  24. background-color: blue;
  25. width: 220px;
  26. float: left;
  27. margin-left:10px;
  28. margin-right: auto;
  29. }
  30.  
  31. #tresc
  32. {
  33. background-color: yellow;
  34. width: 300px;
  35. float: right;
  36. margin-left: 500px;
  37. margin-right: 0px;
  38. }


--------------------



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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:18