I am working on a skin for DotNetNuke and I am having a problem with setting the height to 100% of one of my Divs. I have done some research and I understand the parent Div needs a height for my sub Div to be set to 100%, however my parent Div is set to 100% and then the body Div is set to 100% and this is still not working. My boss hasn't given me much time on this project and I really need help ... gotta love how people that don't understand IT work set the deadlines. Attached is my code. What I am trying to do is simply have one main Div in the center of the browser window and 2 divs, one on either side that has a gradient to help the box stand out more. Any thoughts or help would TOTALLY be appreciated!
kjdavis1210
0
Newbie Poster
Recommended Answers
Jump to PostHere is what I changed (assuming you are not working in Quirks mode which messes everything up). You not only need height on the body but you also need height on the html element (silly I think but it's key). Also you need to remove the
height:auto …
Jump to Postthe line that keeps killing you is:
html { height:auto !important;
You do not need this. Just make it
height: 100%;
straight up, same can be done with body. This is just extra code and is going to break IE7+ and FF. Also the …
All 7 Replies
scrappedcola
11
Posting Whiz in Training
kjdavis1210
0
Newbie Poster
kjdavis1210
0
Newbie Poster
scrappedcola
11
Posting Whiz in Training
kjdavis1210
0
Newbie Poster
kjdavis1210
0
Newbie Poster
scrappedcola
11
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.