Click to See Complete Forum and Search --> : Sizing of <div>


Vic
06-10-2005, 01:02 AM
I need to create a layer that occupies a full size of the available frame, but for a 20px gap on top. How do I do this?

I tried {WIDTH: 100%; HEIGHT: 100%; MARGIN-TOP: 20px}, but this produces immediate scrollbars as total height = 100% + 20px which is > 100%.

I couldn't use {TOP: 20px}, because then my height is not calculable (it would have to be "100%-20px" which won't do)

Thanks in advance for any help

BonRouge
06-10-2005, 03:44 AM
See if this answers your question (it might, it might not) : http://bonrouge.com/br.php?page=faq#hundredpercent