Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [CSS] Problem z rozciąganiem diva.
Forum PHP.pl > Forum > Przedszkole
Rinzler
Witam. Koduję szablon aukcji na Allegro i napotkałem pewien problem. Otóż Div "tresc" nie chce się rozciągać w dół, przez co tekst nachodzi na stopkę. Kod:

  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  2. <style type="text/css">
  3. body {
  4. margin:0;
  5. padding:0;
  6. text-align:left;
  7. }
  8. div {
  9. position:relative;
  10. }
  11. #container {
  12. width:1000px;
  13. }
  14. #pasek {
  15. background:url(images/a_01.jpg) no-repeat;
  16. width:1000px;
  17. height:36px;
  18. }
  19. #uzytkownik {
  20. background:url(images/a_02.jpg) no-repeat;
  21. width:445px;
  22. height:50px;
  23. float:left;
  24. }
  25. .uzytkownik_tresc {
  26. font-size:25px;
  27. font-family:Arial;
  28. color:#1d1d1d;
  29. padding-left:110px;
  30. padding-top:11px;
  31. }
  32. #kim_jestesmy {
  33. background:url(images/a_03.jpg) no-repeat;
  34. width:122px;
  35. height:50px;
  36. float:left;
  37. }
  38. #nasze_aukcje {
  39. background:url(images/a_04.jpg) no-repeat;
  40. width:121px;
  41. height:50px;
  42. float:left;
  43. }
  44. #opinie {
  45. background:url(images/a_05.jpg) no-repeat;
  46. width:116px;
  47. height:50px;
  48. float:left;
  49. }
  50. #pytanie {
  51. background:url(images/a_06.jpg) no-repeat;
  52. width:146px;
  53. height:50px;
  54. float:left;
  55. }
  56. #prawo {
  57. background:url(images/a_07.jpg) no-repeat;
  58. width:50px;
  59. height:50px;
  60. float:left;
  61. }
  62. .menu {
  63. height:50px;
  64. width:1000px;
  65. }
  66. #logo {
  67. background:url(images/a_08.jpg) no-repeat;
  68. width:1000px;
  69. height:201px;
  70. }
  71. #tresc {
  72. background:url(images/a_13.jpg);
  73. width:712px;
  74. height:11px;
  75. float:right;
  76. }
  77. .tresc_naglowek {
  78. font-size:24px;
  79. font-family:Myriad Pro;
  80. color:#2e2e2e;
  81. padding-left:170px;
  82. float:left;
  83. }
  84. .tresc_tekst {
  85. font-size:12px;
  86. font-family:Arial;
  87. color:#666666;
  88. padding-top:70px;
  89. padding-left:170px;
  90. }
  91. .lewa_kolumna {
  92. width:288px;
  93. float:left;
  94. }
  95. #kontakt {
  96. background:url(images/a_09.jpg) no-repeat;
  97. width:288px;
  98. height:33px;
  99. }
  100. #platnosci {
  101. background:url(images/a_12.jpg) no-repeat;
  102. width:288px;
  103. height:33px;
  104. }
  105. #lewo_tresc {
  106. background:url(images/a_16.jpg);
  107. width:288px;
  108. }
  109. #przesylka {
  110. background:url(images/a_18.jpg) no-repeat;
  111. width:288px;
  112. height:33px;
  113. }
  114. #stopka {
  115. background:url(images/a_20.jpg) no-repeat;
  116. width:1000px;
  117. height:88px;
  118. float:left;
  119. clear:both;
  120. }
  121. #cale {
  122. background:url(images/cale.jpg) repeat-y;
  123. }
  124. </head>
  125. <div id="container">
  126.  
  127. <div id="pasek"></div>
  128.  
  129. <div class="menu">
  130. <div id="uzytkownik">
  131. <div class="uzytkownik_tresc">
  132. Twój nick
  133. </div>
  134. </div>
  135. <div id="kim_jestesmy"></div>
  136. <div id="nasze_aukcje"></div>
  137. <div id="opinie"></div>
  138. <div id="pytanie"></div>
  139. <div id="prawo"></div>
  140. </div>
  141.  
  142. <div id="logo"></div>
  143.  
  144. <div id="cale">
  145.  
  146. <div class="lewa_kolumna">
  147. <div id="kontakt"></div>
  148. <div id="lewo_tresc">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
  149. <div id="platnosci"></div>
  150. <div id="lewo_tresc">hjghj ghj g ghjghjghj ghjghj</div>
  151. <div id="przesylka"></div>
  152. <div id="lewo_tresc">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
  153. </div>
  154.  
  155. <div id="tresc">
  156. <div class="tresc_naglowek">Dowolna nazwa produktu</div>
  157. <div class="tresc_tekst">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div>
  158. </div>
  159. <br style="clear: both;" />
  160. </div>
  161.  
  162. <div id="stopka"></div>
  163.  
  164.  
  165. </div>
  166. </body>


Div z kolumnami po lewej normalnie się rozciąga, a środek już nie, Z góry wielkie dzięki za pomoc.
O$iek
  1. #tresc {
  2. background:url(images/a_13.jpg);
  3. width:712px;
  4. height:auto;
  5. float:right;
  6. }

Zmień height na auto.
Rinzler
Wielkie dzięki ! Nie wiem jakim cudem to przeoczyłem biggrin.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.