Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Jak rozciągnąć div'a zawsze do końca strony niezależnie od ilości tekstu?
1q2w3e4r
post
Post #1





Grupa: Zarejestrowani
Postów: 238
Pomógł: 0
Dołączył: 6.05.2011

Ostrzeżenie: (10%)
X----


Witam,

Jak rozciągnąć div'a do końca strony niezależnie od ilości tekstu?
Poniżej załączam screena przedstawiającego problem:
(IMG:http://iv.pl/images/05011186814594654477.png)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
1q2w3e4r
post
Post #2





Grupa: Zarejestrowani
Postów: 238
Pomógł: 0
Dołączył: 6.05.2011

Ostrzeżenie: (10%)
X----


Gdybym miał dać to co robię musiałbym wklejać cały szablon. Dlatego szybko na potrzeby problemu zrobiłem stronę. Przedstawia ona problem, który przeszedłem ustawiając:

  1. #content {
  2. width: 1005px;
  3. background: #ffffff;
  4. float:left;
  5. min-height: auto;
  6. position: absolute;
  7. bottom: 0;
  8. top: 222px;
  9. }


Jednak tak jak kolega wyżej powiedział, zmieniając okno przegladarki ten sposób się sypie. Bo ustawiłem position: absolute.

  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" lang="pl" xml:lang="pl">
  3. <title>Test</title>
  4. body {
  5. text-align: center;
  6. }
  7. #all {
  8. width: 1005px;
  9. margin: auto;
  10. }
  11. #header {
  12. width: 1005px;
  13. height: 222px;
  14. background: #808080;
  15. float:left;
  16. min-height: auto;
  17. }
  18. #content {
  19. width: 1005px;
  20. background: #ffffff;
  21. float:left;
  22. min-height: auto;
  23. }
  24. #content_left {
  25. width: 194px;
  26. float:left;
  27. }
  28. #content_right {
  29. width: 811px;
  30. float:left;
  31. }
  32. </style>
  33. </head>
  34. <body style="background-color: #f1f1f1;">
  35. <div id="all">
  36. <div id="header"></div>
  37. <div id="content">
  38.  
  39. <div id="content_left">fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br /></div>
  40.  
  41. <div id="content_right">tyutryutrutrfdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br />fdgjhrytjdsf<br /></div>
  42.  
  43. </div>
  44. </div>
  45. </body>
  46. </html>
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: 9.10.2025 - 17:21