Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][CSS] płynny szablon z minimalna wysokoscia
lnn
post
Post #1





Grupa: Zarejestrowani
Postów: 361
Pomógł: 11
Dołączył: 17.12.2008
Skąd: LU

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


Czy da rade ustalic minimalna wysokosc np main zeby szablon byl nadal plynny??
Mozna wziac
overflow: auto; ale wtedy scroll sie robi :/ jakies pomysly?

  1. #box {
  2. position:relative;
  3. margin: 4px auto;
  4. width: 870px;
  5. }
  6. #header {
  7. height: 120px;
  8. padding-left:10px;
  9. padding-top:10px;
  10. padding-right:10px;
  11. background-image:url(img/top.png);
  12. }
  13.  
  14. #menu {
  15. width: 160px;
  16. float: left;
  17. overflow: hidden;
  18. position: relative;
  19. background-color: #085C38;
  20. background-image:url(img/menu.png);
  21. background-repeat: repeat-y;
  22. padding-left:10px;
  23. padding-top:10px;
  24. padding-right:10px;
  25. padding-bottom:40px;
  26. }
  27.  
  28. #main {
  29. width:660px;
  30. float:left;
  31. background-color: #D5FFD5;
  32. padding-right:10px;
  33. padding-left:20px;
  34. padding-top:10px;
  35. padding-bottom:10px;
  36. }
  37.  
  38. #footer {
  39. height:37px;
  40. clear: both;
  41. background-image:url('img/foot.png');
  42. background-repeat: repeat-x;
  43. padding-left:5px;
  44. padding-top:5px;
  45. font-size:10px;
  46. text-align:center;
  47. color: silver;
  48. }


Ten post edytował lnn 28.01.2010, 23:21:48
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
emtiej
post
Post #2





Grupa: Zarejestrowani
Postów: 207
Pomógł: 18
Dołączył: 12.04.2009
Skąd: Rypin

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


min-height: ...px;

Nie wiem czy wszystkie przeglądarki to obsługują, poszukaj tu pisze że większość tak: http://www.w3schools.com/CSS/pr_dim_min-height.asp
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 14.10.2025 - 13:23