I have the job of updating the website for work. It is a simple affair with the following:
Header
Navigation
SideBar | Content
As it was done in something like 1999 with tables-o-rama I have decided to start the layout from scratch in CSS. This has all turned out well and I have tested it on IE6, IE7 and Firefox and it all looks fine. However whenever I change the window from full size I get things like:
When what I really want is the sidebar and the content divs to know their role and stay still like so:
I posted on here before about similar and that time i was using absolute positioning instead of relative, however this does not work for me. Below is the CSS for the two divs:
Also as they want the webpage to take up all of the viewable width so is setting percentages the way to go? Any help appreciated on this one.
Header
Navigation
SideBar | Content
As it was done in something like 1999 with tables-o-rama I have decided to start the layout from scratch in CSS. This has all turned out well and I have tested it on IE6, IE7 and Firefox and it all looks fine. However whenever I change the window from full size I get things like:

When what I really want is the sidebar and the content divs to know their role and stay still like so:

I posted on here before about similar and that time i was using absolute positioning instead of relative, however this does not work for me. Below is the CSS for the two divs:
Code:
/*These are the properies for the side bar on the site*/
#SideBar
{
width: 15%;
height: 750px;
background-color:White;
float:left;
border-right: 1px dotted #CCC;
border-bottom: 1px dotted #CCC;
}
/*These are the properties for the main content window*/
#MainContent
{
float:right;
width: 84%;
height: 750px;
background-color:White;
}
Also as they want the webpage to take up all of the viewable width so is setting percentages the way to go? Any help appreciated on this one.