I'm struggling with aligning a div vertically inside another div in Internet Explorer.
Here's my HTML code:
<div class="header">
<div id="mainMenu">
<!--Main menu content here-->
</div>
</div>
My styles are set as follows:
#mainMenu
{
/*background-color: #FFF;*/
font-family: fantasy, cursive, Serif;
font-size:16px;
/*border-bottom:1px solid #000000;*/
height:125px;
position:relative;
}
.header {
top: 0px;
color:#FFA500;
z-index:1000;
height:120px;
padding:8px 2px 8px 15px;
overflow:hidden;
-moz-border-radius:0 0 10px 10px;
-webkit-border-radius:0 0 10px 10px;
border-radius:0 0 10px 10px;
-moz-box-shadow:0 1px 3px #777;
-webkit-box-shadow:0 2px 3px #777;
box-shadow:0 2px 3px #777;
background: url("../images/plusoneurls_resize.png") repeat scroll 0 0 transparent;
}
In Firefox, when I set the height attribute to 120px (100%) for the #mainMenu style, the main items show at the bottom, but this isn't working in IE.
Even trying top:100%, it displays fine in Firefox, but overflows into the main content in IE. How can I find a solution to this issue?