hi,
i have this page.
screenshot
I want the background to expand downwards automatically as more content is added.
i have coded it like this
So the 1st is for the background(white).Code:.contentWrapper{ min-width:100%; min-height:100%; } ... /*1-Background*/ .main-content { background-color:white; width:950px; height:100%; position:relative; top:265px; left:150px; z-index:0; } ... /*Preview Posts */ .previewPost{ /*Background and Container*/ position:relative; top:380px; left:15px; background-color:#EEEEEE; height:700px; width:610px; border:1px solid #BBBBBB; } ...
The 2nd is for the container that is going out a little bit downwards.
My html basically looks like this
Any ideas how to fix this ?Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <div class="contentWrapper"> ... <div class="main-content"> ... <div class="previewPost"> ... </div> ... </div> </div>







Bookmarks