I have a website with the following basic layout. Essentially, I have the NAV
div and SIDEBAR
div at fixed positions. This is because when a user scrolls down on my page, only the MIDDLE COLUMN
div will move.
The problem I have is that when the window gets shrunk horizontally, the SIDEBAR moves to left and eventually overlaps my MIDDLE COLUMN
.
I have the body
set to a min-width
but it only affects the SIDEBAR if it is position:absolute
and not position:fixed
Is there a way to keep my same method of scrolling, but have the SIDEBAR
div stop moving left after a certain pixel constraint?
Thanks!
EDIT MARKUP:
div.MASTER {
position: inherit;
width:100%;
height:auto;
}
div.NAV {
position:fixed;
top:0;
left:0;
width:200px;
}
div.CONTENT {
float: left;
position: relative;
width:100%;
}
div.MIDDLECOLUMN {
float:left;
width:100%;
height:100%;
text-align:center;
}
div.SIDEBAR {
position:fixed;
top: 0;
right: 0;
width:200px;
}