<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <link href="style.css" rel="stylesheet" type="text/css" /> <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" /> </head> <body> <div id="pageContainer"> <div id="leftContainer"> a<br />a a a </div> <div id="centerContainer"> </div> </div> </body> </html>
body{ margin:0px; margin-bottom:20px; background-color:#ffffff; } #pageContainer{ padding-left:0px; padding-right:0px; width:980px; margin:0 auto; background-repeat:repeat-y; background-image:url(images/sides.jpg); } #leftContainer{ float:left; width:20px; display:inline; } #centerContainer{ float:left; width:900px; display:inline; } #leftBanner{ float:left; width:284px; height:150px; display:inline; background-image:url(images/web_webuyhouses.jpg); }
Moze mi ktos powiedziec dlaczego mimo ze wszystko jest w pageContainer to nie widac jego tła ?
Dopiero jak powywalam wszedzie float:left no ale to mi potrzebne
A gdy mam to float:left to pageContainer sie nei rozszerza jest na gorze wysokosc 0px
---------------------------
Dobra dodalem footerContainer z clear:both ale i tak mi sie to wydaje bez sensu ze mimo ze cos w divie jest to sie nie rozszerza