Windows 7 Explorer in CSS Layout

I am trying to make Windows Explorer, as in CSS, and now here is my code.

#explorer is not configured correctly. Here is a small explanation of what I'm trying to do.

sys_top on top, always visible

info_Bar at the bottom of the page, always visible

navbar on the left, width 20%

conductor on the right, width 80%

HTML:

<div id="sys_top"></div>
<div id="navbar"></div>
<div id="explorer"></div>
<div id="infobar"></div>

CSS

html, body {
padding:0;
margin:0;
height:100%;

cursor: default;

font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 12px;
}
#sys_top {
background: url(../menu_files/bg.png) repeat-x;
width:100%;
top:0;
position: fixed;
}
#navbar {
width: 20%;
height: 100%;
float:left;
left: 0;
top: 30px;
position: fixed;
border-right: #CCCCCC solid 1px;
}
#explorer {
width: 500px;
height:300px;
float:right;
top: 30px;

overflow:auto;
}
#infobar {
height: 120px;
width: 100%;
bottom:0;

position: fixed;
display:block;
margin-top: 5px;
margin-left: 5px;
} 
0
source share
1 answer

You speak:

conductor on the right, width 80%

and your css says:

#explorer {
width: 500px;
...

FINAL ANSWER:

body {
overflow: hidden;
}

#navbar {
position: absolute;
width: 20%;
bottom: 120px;
left: 0;
top: 30px;
}

#explorer {
position: absolute;
top: 30px;
right: 0;
bottom: 120px;
overflow: auto;
width: 80%;
}

You must reset the float, height, margin for #explorer and position: fixed, height, float for #navbar.

+2
source

All Articles