Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]Problem z Float
Raven1122
post
Post #1





Grupa: Zarejestrowani
Postów: 369
Pomógł: 2
Dołączył: 1.11.2010

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


Witam mam taki styl css:

  1. #leftmenu{
  2. background:#f5f5f5;
  3. background-image:url("../images/div_top.png"),url("../images/div_bottom.png");
  4. background-position:top center, bottom center;
  5. background-repeat:repeat-x, repeat-x;
  6. width:290px;
  7. height:100%;
  8. border:1px solid #b7b7b7;
  9. float:left;
  10. }
  11.  
  12. #centerblock{
  13. background:#f5f5f5;
  14. background-image:url("../images/div_top.png"),url("../images/div_bottom.png");
  15. background-position:top center, bottom center;
  16. background-repeat:repeat-x, repeat-x;
  17. width:500px;
  18. height:100%;
  19. border:1px solid #b7b7b7;
  20. margin-left:295px;
  21. }
  22.  
  23. #rightmenu{
  24. background:#f5f5f5;
  25. background-image:url("../images/div_top.png"),url("../images/div_bottom.png");
  26. background-position:top center, bottom center;
  27. background-repeat:repeat-x, repeat-x;
  28. width:170px;
  29. height:100%;
  30. border:1px solid #b7b7b7;
  31. margin-left:815px;
  32. float:right;
  33. }


i taki kod html:

  1. <div id="leftmenu">fdgfhhfghfghfg fgh fdh fg hfdg hfh fgh f hf f f hfg hfgh fg hfdfg hfdgh hfg</div>
  2. <div id="rightmenu">fdgfhhfghfghfg fgh fdh fg hfdg hfh fgh f hf f f hfg hfgh fg hfdfg hfdgh hfg</div>
  3. <div id="centerblock">fdgfhhfghfghfg fgh fdh fg hfdg hfh fgh f hf f f hfg hfgh fg hfdfg hfdgh hfg</div>


i wyglada to nastepujaca:

leftmenu centerblock
rightmenu


right menu ucieka pod left i center, dlaczego tak sie dzieje?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Ulysess
post
Post #2





Grupa: Zarejestrowani
Postów: 695
Pomógł: 65
Dołączył: 27.07.2009
Skąd: Y

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


no i własnie... smile.gif w marginesach jest problem... pamiętaj że jeśli main ma 1000 szerokości wszystkie divy które chcesz w nim poziomo ustawić musza mieć łącznie max 1000 px wraz z szerokością , obramowaniem i marginesami smile.gif
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 - 18:38