First of all, I'm kinda new on CSS.
I'm trying to build a scheme using only Divs (table-free).
I want it to look like this:
-> Can't post images, so I'll explain, but you can look into the code I put on this post.
-> fullscreen, logotype and 2 columns (left and right). The right column is divided in 2, horizontally: a content part and a footer part.
It's fullscreen, and the Footer (dark orange) must stay there always. If needed, a scrollbar should appear only on the Content div (light orange).
I'm having trouble with overlapping (or whatever the technical name is for this problem).
Here's my code:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "--REMOVED DUE TO STAT ON FORUM--"> <html xmlns="--REMOVED DUE TO STAT ON FORUM--"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="page"> <div id="logo">LOGO HERE</div> <div id="left-menu">MENU</div> <div id="right"> CONTENT WITH SCROLL IF NEEDED <div id="footer"> LOCKED IN SCREEN FOOTER </div> </div> </div> </body> </html>
CSS:
@charset "utf-8";
#logo {
overflow: hidden;
position: absolute;
visibility: visible;
z-index: auto;
background-color:#CCC;
float: left;
height: 57px;
width: auto;
left: 0px;
right: 0px;
top: 0px;
bottom: auto;
margin-top: 0px;
margin: 0px;
padding: 0px;
clear: both;
float: none;
border-bottom: solid 1px #808080;
}
#left-menu {
margin: 0px;
padding: 0px;
clear: left;
float: left;
height: auto;
width: 153px;
overflow:hidden;
position: absolute;
visibility: visible;
z-index: auto;
left: 0px;
top: 58px;
right: auto;
bottom: 0px;
border-right:solid 1px #898c8f;
background-color: #E4E9EE;
font-family: Tahoma, Geneva, sans-serif;
font-size: 10pt;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: uppercase;
color: #2f5065;
text-decoration: none;
text-align: center;
}
#right {
margin: 0px;
padding: 0px;
clear: both;
float: left;
height: auto;
width: auto;
overflow: auto;
position: absolute;
visibility: visible;
z-index: auto;
left: 154px;
top: 58px;
right: 0px;
bottom: 0px;
background-color: #FACAFA;
}
#footer {
margin: 0px;
padding: 0px;
clear: both;
float: left;
height: 30px;
width: auto;
overflow: auto;
position: absolute;
visibility: visible;
z-index: auto;
bottom: 0;
left: 16px;
background-color: #D4FFAA;
}
Thanks in advance to who might help me here. :)


Sign In
Create Account

Back to top









