![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 72 Pomógł: 0 Dołączył: 24.02.2009 Ostrzeżenie: (0%) ![]() ![]() |
Moja strona wizualnie wygląda tak:
(IMG:http://img139.imageshack.us/img139/2989/aaaytw.th.jpg) Jak rozciągnąć granatowe tło na całą stronę w osi Y tak, aby było niezależne od długości tekstu ? Plik CSS:
Próbowałem już w klasie #content ustawiać height na 100%, auto, itp. ale nie pomagało. Ma ktoś może jakiś pomysł ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 8 989 Pomógł: 1550 Dołączył: 8.08.2008 Skąd: Słupsk/Gdańsk ![]() |
Kod <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <style type="text/css"> html, body { margin: 0; padding: 0; height: 100%; font-family: verdana, arial; color: #ffffff; background-color: #333; font-size: 12px; text-align: center; } #all{ margin: 0 auto; width: 900px; background: #030c11; height: 100%; padding: 0px; text-align: left;} #content { padding: 10px; } p { margin: 0; padding: 4px 0; } </style> </head> <body> <div id="all"> <div id="content"> <p>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.</p> <p>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.</p> </div> </div> </body> </html> Dodałem drugi div zeby teraz ładnie było. I przepraszam, za moj błąd, nie zauważyłem, że content jest w innym divie. Ten post edytował wookieb 21.07.2009, 14:30:54 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 7.10.2025 - 00:10 |