Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS] Szerkosc środkowego diva
-po-
post
Post #1





Goście







Mam problem ze środkowym divem:

  1. <div id="content">
  2. <div class="top_navl">&nbsp;</div>
  3.  
  4. <div class="top_navc"><ul class="left">
  5. text text text text text text text text text
  6. </div>
  7. <div class="top_navr">&nbsp;</div>
  8.  
  9. </div>
  10.  
  11.  
  12.  
  13. #content {
  14. width: 100%;
  15. margin: 0 auto;
  16. text-align: center;
  17. border: 1px solid #CCC;
  18. min-width:790px;
  19. max-width:1100px;
  20. display: block;
  21. }
  22.  
  23. div#content{width:expression(document.body.clientWidth < 770? "768px" : document.body.clientWidth > 1110? "1100px" : "auto");}
  24.  
  25.  
  26. .top_navl {
  27. background: url('images/ms_01.gif') top left no-repeat black;
  28. width:16px;
  29. height:40px;
  30. display: block;
  31. border: 1px solid #ccc;
  32. float: left;
  33. }
  34.  
  35. .top_navr {
  36. background: url('images/ms_06.gif') top left no-repeat black;
  37. width:16px;
  38. height:40px;
  39. border: 1px solid #ccc;
  40. float: left;
  41. }
  42.  
  43.  
  44. .top_navc {
  45. background: url('images/ms_02.gif') left top repeat-x blue;
  46. color: #fff;
  47. font: 11px tahoma, arial, sans-serif;
  48. vertical-align: top;
  49. text-align: left;
  50. border: 1px solid #ccc;
  51. float: left;
  52. height: 40px;
  53. min-width: 768px;
  54. width: 100%;
  55. }


Problem polega na tym że jak ustawie dla top_navc szerkosc w procentach, boczne divy wywala na dół.
Chcę żeby topnavc był szeroki na całą szerokość strony

Mam jeszcze pytanie dotyczace rozdzielczości. Jak wiadomo funkcjonuje max - min width, tyle ze IE nie czyta tego. W jaki inny sposób mogę ustawić szerokość strony pod konkretną rozdzielkę ekranu?
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 - 11:19