No replies
Jong
Offline
newbie
Denmark
Last seen: 18 years 3 weeks ago
Denmark
Timezone: GMT-1
Joined: 2005-03-07
Posts: 1
Points: 0

I have a little problem about height inheritance.

I have a block element, wrapper, with the height set to 100%. Next I wanted the inner block element, blocker, to inheritance the height of its parent, but that seems to be kind of tricky. Too tricky for me anyway Wink

I've read somewhere it's because the height inheritance stops when using a overflow like 100%. Well, if anyone want to help me out, I will be most thankful Wink

#wrapper {
	min-height: 100%;
	height: auto !important;
	height: 100%;
}

#blocker {
	min-height: 100%;
	height: auto !important;
	height: 100%;
}

<div id="wrapper">
	<div id="blocker">block element should have a 100% height also</div>
</div>