Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Brak tła pod sekcjami strony w kontenerze.
fjellah
post
Post #1





Grupa: Zarejestrowani
Postów: 51
Pomógł: 1
Dołączył: 26.08.2006
Skąd: Simplicity

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


Witam. Jaką może mieć przyczynę niewyświetlanie białego tła pod sekcjami strony, znajdujących się wewnątrz kontenera(zrzut)?Dzieje się tak, mimo że ustawiłem dla niego height:auto;?Kod strony:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <title>A List Apart: A List Apart</title>
  4. <meta name="description" content="" />
  5. <meta name="keywords" content="" />
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  7. <link rel="stylesheet" type="text/css" href="tpl/def/css/styl.css" media="all" />
  8. <script type="text/javascript" src="libs/js/jquery/jquery.js"></script>
  9. <script type="text/javascript" src="libs/js/ss/ss.js"></script>
  10. </head>
  11. <div id="top">sdassa</div>
  12. <div id="ko">
  13. <div id="podmenu">
  14. <p>Dzisiaj jest czwartek / 13 sierpnia 2009 r. - 225 dzień roku.</p>
  15. <ul>
  16. <li><a href="/">o mnie</a></li>
  17. <li><a href="/">kontakt</a></li>
  18. <li><a href="/">archiwum</a></li>
  19. <li><a href="/">rss</a></li>
  20. </ul>
  21. </div>
  22. <div id="zw">sdasadsadLorem Ipsum is siLorem 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 publishingLorem 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 publishingmply 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. 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 publishingLorem 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</div>
  23. <div id="m">dfdffsdLorem 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 publishingLorem 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 publishingLorem 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</div>
  24. </div>
  25. </body>
  26. </html>

CSS:
  1. body
  2. {
  3. background:#000 url(../img/tlo.JPG) no-repeat;
  4. background-position: center;
  5. }
  6. *
  7. {
  8. margin:0;
  9. padding:0;
  10. text-decoration:none;
  11. list-style:none;
  12. text-align:justify;
  13. }
  14. #top
  15. {
  16. height:125px;
  17. }
  18. #ko
  19. {
  20. background:#fff;
  21. height:auto;
  22. }
  23. #top, #ko
  24. {
  25. width:94%;
  26. margin:0 auto;
  27. }
  28. #podmenu
  29. {
  30. padding:9px 5px 0 5px;
  31. height:23px;
  32. }
  33. #podmenu p
  34. {
  35. float:left;
  36. color:#222;
  37. font:normal 12px sans-serif;
  38. text-transform:uppercase;
  39. }
  40. #podmenu ul
  41. {
  42. float:right;
  43. font:bold 12px sans-serif;
  44. }
  45. #podmenu ul li
  46. {
  47. display:inline;
  48. margin-left:2px;
  49. }
  50. #podmenu li a
  51. {
  52. color:#666;
  53. text-transform:uppercase;
  54. }
  55. #podmenu li a:hover
  56. {
  57. color:#2E5C8A;
  58. }
  59. #zw
  60. {
  61. float:left;
  62. height:auto;
  63. width:70%;
  64. display:block;
  65. }
  66. #m
  67. {
  68. float:right;
  69. height:auto;
  70. width:30%;
  71. }
Pozdrawiam i dziękuję za odpowiedzi.
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: 18.09.2025 - 01:19