I am trying to get a page to work in Firefox, Safari and Google Chrome. It works fine in IE. I have already done several thing that fixed the issue at one point or another, but to get everything working, it keeps breaking.
The page is at Look at it in IE, and you'll see what I'm trying for.
The code that I believe is relavent is below:
XHTML
CSS
I can fix the problem by simply specifying a width in the CSS under #MainContent. If I specify something like 650, it works fine - that is - on my screen, but a smaller resolution, it won't. If there aren't 800 pixels, then it still looks like it does now. If I don't specify a size on either #MainContent or #SubNavigation, it looks like it does now as well. I believe that if the width is not specified, it must be assuming 100% instead of fitting in it's space. I want it to take up whatever space is left, not a set amount of space. Any ideas how to fix this problem?
The page is at Look at it in IE, and you'll see what I'm trying for.
The code that I believe is relavent is below:
XHTML
Code:
<div id="WholePage">
{Top navigation stuff - all works, leaving out code}
<div id="Container">
<div id="SubNavigation">
<a href=''>Mary</a>
<a href=''>Penny</a>
<a href=''>Jeff</a>
</div>
<div id="MainContent">
Images, text, etc.... blah, blah.
</div>
<div class="ClearFloats"></div>
</div>
</div>
CSS
Code:
#WholePage {
width: 100%;
margin: 0 auto;
}
#Container {
background: url('Images/Navigation/sidebkgd.jpg') repeat-y left;
}
#SubNavigation {
float: left;
width: 150px;
padding: 20px;
}
#SubNavigation a {
color: #ffffff;
font-size: 10pt;
font-weight: bold;
text-decoration: none;
display: block;
}
#MainContent {
float: left;
padding: 20px;
}
DIV {
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
}
.ClearFloats {
clear: both;
}
I can fix the problem by simply specifying a width in the CSS under #MainContent. If I specify something like 650, it works fine - that is - on my screen, but a smaller resolution, it won't. If there aren't 800 pixels, then it still looks like it does now. If I don't specify a size on either #MainContent or #SubNavigation, it looks like it does now as well. I believe that if the width is not specified, it must be assuming 100% instead of fitting in it's space. I want it to take up whatever space is left, not a set amount of space. Any ideas how to fix this problem?