This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > August 2006 > Div Height





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Div Height
malachi.constant@gmail.com

2006-08-17, 6:40 am

I have a simple div defined as follows:

#leftbar {
position: absolute;
top: 0px;
left: 0;
margin: 0;
border: 0px dashed #999;
width: 100px;
height:100%;
background: #CCCCFF;

}

and also in the css I have

body,html {
height:100%;
min-height:100%;
}

But the column does not fill the page as it should and cuts off after a
certain point, in both firefox and IE. Any ideas how to remedy this ? I
know it CAN be done but I'm stuck.

sajr

2006-08-18, 12:51 am

The problem is when you tell a div "height:100%", it needs to be inside another div or table that has it's height in pixels. Otherwise it defaults to "height:auto".

Check here: http://forums.devarticles.com/advan...-100t-8397.htmlhttp://forums.devarticles.com/advan...-100t-8397.html

Hope this helps.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews