Forums

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

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27025
    RohanJM
    Member

    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

    #67414

    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

    Code:
    body { width:100% }
    #div { width:98% }
    #67411
    RohanJM
    Member

    No sorry, I forgot to mention I need the height to be 98% not the width.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.