VaporAction Posted January 14, 2007 Share Posted January 14, 2007 I'm trying to make a page with margin: auto; so that it's always centered and I want the page to continue to the bottom of the browser so I set the height to 100%...problem is that height: 100% only works with position: absolute but margin: auto only works with position: relative...anybody know how to do this? Link to comment Share on other sites More sharing options...
Guest DeNayGo Posted January 14, 2007 Share Posted January 14, 2007 does the content have a fixed width? then you could do something like this: position: absolute;width: 600px;height: 100%;left: 50%;margin-left: -300px; Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now