amandajo
12-06-2006, 05:14 AM
Hi,
I am trying to arrange this 2 column layout and have some problems.
I really don't know what direction to go from here.
I want to get a gradient background on my left sidebar.
But, the sidebar div does not continue to the bottom with the content div, should I just put the gradient background onto the body or the container box?
If so, how can I have the page be at least 100% of the browser (so the background does not run past the footer)? When I do 100% height on the content box it runs past the page (the header and footer are sized by px) and it also messed up by bottom corner images.
Any help anywhere is great.
CODE:
html {
margin:0;
border:0;
padding:0;
height:100%;
}
Body {
margin:0;
border:0;
padding:0;
background:orange;
height:100%;
}
#container {
margin:0;
border:0;
padding:0;
background:brown;
min-height:100%;
height:100%;
}
div.header {
margin:0;
border:0;
padding:0;
width:100%;
Height:35px;
background:red;
}
div.side {
margin:0;
border:0;
padding:0;
width:125px;
background:yellow;
float:left;
}
div.content {
border:0;
padding:0;
margin:0;
width:100%;
background:blue url("shadow.gif");
background-repeat: repeat-y;
}
div.footer {
margin:0;
border:0;
padding:0;
width:100%;
Height:35px;
background:purple;
position:bottom;
clear:both;
}
div.bottomcorner {
padding:0;
margin:0;
border:0;
}
PAGE:
<html>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<link rel="stylesheet" type="text/css" href="default2.css" />
</head>
<body>
<div id="container">
<div class="header"><p>HEADER</p></div>
<div class="side"><p>SIDE</p></div>
<div class="content"><img src="topcorner.gif"><p>CONTENT</p> <p>contenthhhhh hhhhhhhh hhhhhhhhhhhhhh</P><p>content</P><p>content</P><p>content</P>
<div class="bottomcorner"><img src="bottomcorner.gif"></div></div>
<div class="footer"><p>FOOTER</p></div>
</div>
</body>
</html>
I am trying to arrange this 2 column layout and have some problems.
I really don't know what direction to go from here.
I want to get a gradient background on my left sidebar.
But, the sidebar div does not continue to the bottom with the content div, should I just put the gradient background onto the body or the container box?
If so, how can I have the page be at least 100% of the browser (so the background does not run past the footer)? When I do 100% height on the content box it runs past the page (the header and footer are sized by px) and it also messed up by bottom corner images.
Any help anywhere is great.
CODE:
html {
margin:0;
border:0;
padding:0;
height:100%;
}
Body {
margin:0;
border:0;
padding:0;
background:orange;
height:100%;
}
#container {
margin:0;
border:0;
padding:0;
background:brown;
min-height:100%;
height:100%;
}
div.header {
margin:0;
border:0;
padding:0;
width:100%;
Height:35px;
background:red;
}
div.side {
margin:0;
border:0;
padding:0;
width:125px;
background:yellow;
float:left;
}
div.content {
border:0;
padding:0;
margin:0;
width:100%;
background:blue url("shadow.gif");
background-repeat: repeat-y;
}
div.footer {
margin:0;
border:0;
padding:0;
width:100%;
Height:35px;
background:purple;
position:bottom;
clear:both;
}
div.bottomcorner {
padding:0;
margin:0;
border:0;
}
PAGE:
<html>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<link rel="stylesheet" type="text/css" href="default2.css" />
</head>
<body>
<div id="container">
<div class="header"><p>HEADER</p></div>
<div class="side"><p>SIDE</p></div>
<div class="content"><img src="topcorner.gif"><p>CONTENT</p> <p>contenthhhhh hhhhhhhh hhhhhhhhhhhhhh</P><p>content</P><p>content</P><p>content</P>
<div class="bottomcorner"><img src="bottomcorner.gif"></div></div>
<div class="footer"><p>FOOTER</p></div>
</div>
</body>
</html>