Jump to content

Using remaining space


Moyley
 Share

Recommended Posts

Hey allOn the following website:http://www.tinkahill.com/pdt/voilaI have a full XHTML/CSS website.For the menu(blue) and content(black) sections I have height set to 100%, this works but is setting it to the height of the window, not considering the top banner with a height of 203px.Is there anyway I can make these sections simply drop down to the height of the browser window?Back in the day with HTML and tables you could use att and * which would tell it to use all remaining space.Any solution these days?

Link to comment
Share on other sites

Well you could set the banner to a percentage.

<html><head><style type="text/css">banner{height:10%;}content{height: 90%;}</style></head><body></body></html>

I don't know if you are prepared to have your banner stretched and shrunk a bit but this would use the entire window.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...