If possible, you should break your fixed position elements into 4 separate sections (top, left, right, and bottom). Then just make sure that you fill the content area of ββthe center by their width and height so that the content does not overlap:
HTML
<div id="top"></div>
<div id="left"></div>
<div id="right"></div>
<div id="bottom"></div>
<div id="content">
</div>
CSS
html, body {
height: 100%;
}
#top, #left, #right, #bottom {
position: fixed;
left: 0;
top: 0;
z-index: 2;
background: red;
}
#top, #bottom {
width: 100%;
height: 20px;
}
#bottom {
top: auto;
bottom: 0;
}
#left, #right {
height: 100%;
width: 20px;
}
#right {
left: auto;
right: 0;
}
#content {
position: relative;
z-index: 1;
padding: 25px;
}
Here you can see here.
: . , z-index , .
IE6/7, , , .