So the problem is the object tag. it simply refuses to scale heightwise. chrome works perfect. IE and firefox it stays the default height. I am having a really hard time finding cross-browser code. From what I have found from other threads and sites is that the parent container needs to have a height set. so that is why you see height settings on html and body and the <div id="calendar">. Although I understand the theory it still doesn’t work.
side note: the reason for the inline css is cause that’s where i do my css testing. and i didn’t make a fiddle because the object is like 80+ files and i don’t know how to use jsfiddle that well and kinda feel like that isn’t going to be able to get the calendar in there.
<!DOCTYPE html>
<html style="height: 100%" >
<body style="height: 100%" >
<form >
<div id="calendar" style="height: 70%">
<object data="calendar.php" width="50%" style="height: 100%"/>
</div>
</form>
</body>
</html>
So the problem is the
object tagso where’s the tag? And for the question you asked why you need thisis because when you use
height: 70%;for child element than the question arises70%of what? So when you define height to parent in%it defines70%of100%