The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Forcing height to be % of the browser window
Hi all,
How do I get a div to be 98% of the browser window using CSS, also I want my layout to spread evenly thru different browser window width’s.
Heres the link to the site http://www.layersdesignstudio.com/websites/saloon_ro/
Thanks for the help guys, Rohan Merchant
Surely you would create a div in which you would place your content, making the body of the page 100%, and the div 98%. So your CSS would be
No sorry, I forgot to mention I need the height to be 98% not the width.
Thanks