D
Don G
I am working on a website that has a menu sidebar. I have the menu
worked out just fine, but I would like to put a few more elements in the
the sidebar. The catch is, that I would like these elements to be
placed at the very bottom of the sidebar area. The content area changes
size depending on what I put in it, but I don't want to use absolute
positioning for this; I would rather have it done dynamically.
If any one has any suggestions, I would appreciate it.
Thank you,
Don
Here is some sample code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style>
/* At-Rules */
body {
background-color: gray;
font-size: 15px;
font-family: cursive;
}
#menu {
float: left;
width: 90px;
margin: 0 0 0 0;
padding: 0 0 0 0;
}
#menu ul {
margin: 0 0 0 0;
padding: 0 0 0 0;
list-style-type: none;
}
#menu a {
display: block;
color: white;
background-color: #0066cc;
width: 93px;
padding: 3px 12px 3px 8px;
text-decoration: none;
border-bottom: 1px solid #fff;
font-weight: bold;
font-size: 12px;
}
*html #menu a {
width: 110px;
padding: 3px 12px 3px 8px;
}
#menu a:hover {
background-color: #82A3CC;
color: white;}
#menu a:active {
background-color: #3033cc;
color: white;}
#container {
padding: 0 0 0 0;
margin: 0 0 0 0;
background-color: #0066cc;
color: white;
line-height: 130%;
width: 598px;
}
#top {
padding: .25em .25em .25em .25em;
background-color: #0066cc;
text-align: center;
border: 1px solid blue;
}
#top h1 {
font-size: 2em;
font-weight: bolder;
padding: 0 0 0 0;
}
#contentwindow {
background-color: #dadada;
margin-left: 113px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 0;
width: 484px;
height: 500px;
}
*html #contentwindow {
margin-left: 100px;
padding-top: 10px;
padding-bottom: 10px;
}
/* End of style section. Generated by AceHTML at 2/8/2005 9:10:14 AM */
</style>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test Page</title>
</head>
<body>
<div id="container">
<div id="top"><h1>Test Page</h1></div>
<div id="menu">
<ul>
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">This link should be at the bottom.</a></li>
</ul>
</div>
<div id="contentwindow"></div>
</div>
</body>
</html>
worked out just fine, but I would like to put a few more elements in the
the sidebar. The catch is, that I would like these elements to be
placed at the very bottom of the sidebar area. The content area changes
size depending on what I put in it, but I don't want to use absolute
positioning for this; I would rather have it done dynamically.
If any one has any suggestions, I would appreciate it.
Thank you,
Don
Here is some sample code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style>
/* At-Rules */
body {
background-color: gray;
font-size: 15px;
font-family: cursive;
}
#menu {
float: left;
width: 90px;
margin: 0 0 0 0;
padding: 0 0 0 0;
}
#menu ul {
margin: 0 0 0 0;
padding: 0 0 0 0;
list-style-type: none;
}
#menu a {
display: block;
color: white;
background-color: #0066cc;
width: 93px;
padding: 3px 12px 3px 8px;
text-decoration: none;
border-bottom: 1px solid #fff;
font-weight: bold;
font-size: 12px;
}
*html #menu a {
width: 110px;
padding: 3px 12px 3px 8px;
}
#menu a:hover {
background-color: #82A3CC;
color: white;}
#menu a:active {
background-color: #3033cc;
color: white;}
#container {
padding: 0 0 0 0;
margin: 0 0 0 0;
background-color: #0066cc;
color: white;
line-height: 130%;
width: 598px;
}
#top {
padding: .25em .25em .25em .25em;
background-color: #0066cc;
text-align: center;
border: 1px solid blue;
}
#top h1 {
font-size: 2em;
font-weight: bolder;
padding: 0 0 0 0;
}
#contentwindow {
background-color: #dadada;
margin-left: 113px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 0;
width: 484px;
height: 500px;
}
*html #contentwindow {
margin-left: 100px;
padding-top: 10px;
padding-bottom: 10px;
}
/* End of style section. Generated by AceHTML at 2/8/2005 9:10:14 AM */
</style>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test Page</title>
</head>
<body>
<div id="container">
<div id="top"><h1>Test Page</h1></div>
<div id="menu">
<ul>
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">This link should be at the bottom.</a></li>
</ul>
</div>
<div id="contentwindow"></div>
</div>
</body>
</html>