![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 406 Pomógł: 9 Dołączył: 24.07.2005 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Pociąłem w Photoshopie szablon strony, oto jego kod:
Wiem że tabelki, nie są już na czasie... ale nie wiem jak to przerobić na divy (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Znam troche podstaw, no ale to już bardziej złożony szablon musiałby być. Pomoże mi ktoś, to przerobić (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/sadsmiley02.gif) PLEASE ! |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 7 494 Pomógł: 302 Dołączył: 31.03.2004 Ostrzeżenie: (0%) ![]() ![]() |
index.html
Kod <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" > <head> <title></title> <meta name="author" content="Święty Mikołaj :-)" /> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="mainContainer"> <div id="siteLogo"></div> <div id="leftColumn"> <div id="leftColumnTop"></div> <div id="leftColumnBottom"></div> </div> <div id="middleColumn"> <div id="contentHeader"></div> <div id="content"> 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. </div> </div> <div id="rightColumn"> <div id="rightColumnTop"></div> <div id="rightColumnBottom"></div> </div> <div id="siteFooter"></div> </div> </body></html> (dełem w [ code ] żeby wcięcia były widoczne) style.css Kod body { text-align: center; } #mainContainer { margin: auto; width: 780px; text-align: left; overflow: auto; } #siteLogo { width: 780px; height: 103px; float: left; background: #f00; } #leftColumn { width: 158px; float: left; overflow: auto; } #leftColumn #leftColumnTop { width: 158px; height: 167px; float: left; background: #0f0; } #leftColumn #leftColumnBottom { width: 158px; height: 330px; float: left; background: #f00; } #rightColumn { width: 184px; float: right; overflow: auto; } #rightColumn #rightColumnTop { width: 184px; height: 33px; float: right; background: #0f0; } #rightColumn #rightColumnBottom { width: 184px; height: 437px; float: right; background: #f00; } #middleColumn { width: 438px; float: left; overflow: auto; } #middleColumn #contentHeader { width: 438px; height: 33px; float: left; background: #00f; } #middleColumn #content { width: 438px; height: 437px; float: left; background: #0ff; } #siteFooter { width: 622px; height: 27px; float: right; background: #ff0; } Nie ukrywam że można to zrobić jeszcze prościej, nie używając kontenerów #leftColumn, #rightColumn i #middleColumn, ale z doświadczenia wiem, że często one się przydają do różnych celów. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 18:30 |