CHINOS
asked on
equal div height in single container
Hi,
I am trying to get my left div (div id="sidebar") to automatically reach the right div height (div id="page")
I have looked through the other posts and have gathered that the floats need to be cleared but every time I do that the positioning of everything gets whacked... Is there another way I can do this?
Thanks in advance.
I am trying to get my left div (div id="sidebar") to automatically reach the right div height (div id="page")
I have looked through the other posts and have gathered that the floats need to be cleared but every time I do that the positioning of everything gets whacked... Is there another way I can do this?
Thanks in advance.
/*
Name : Holzbau Ableiter
Description: A two-column, fluid-width design.
*/
body {
margin: 20px;
padding: 0;
background: #CCCCCC;
}
body, th, td, input, textarea, select {
font-family: "Myriad Pro", Arial, Helvetica, sans-serif;
font-size: 13px;
color: #FFFBE2;
font-weight: normal;
}
h1, h2, h3, h4 {
color: #FFFBE2;
}
h1 {
font-size: 1.3em;
}
h2 {
font-size: 1em;
}
h3 {
font: "myriad Pro";
font-size: 20px;
}
input, textarea, select {
color: #000000;
}
a {
color: #3A570F;
}
a:hover {
text-decoration: none;
}
#home_title {
font-size: 16px;
font-family: "myriad Pro";
}
/* Sidebar */
#sidebar {
background: url(images/spacers/img_17.gif) repeat-y;
float: left;
width: 190px;
height:auto;
}
#sidebar-extend {
background: url(images/spacers/img_17.gif) repeat-y;
width: 190px;
}
#links{
margin-right: auto;
margin-left: auto;
margin-bottom: auto;
width: 130px;
max-height: 160px;
}
.link_01 {
height:23px;
width: 130px;
background: url(images/links/link_01.gif);
}
.link_02 {
height:25px;
width: 130px;
background: url(images/links/link_02.gif);
}
.link_03 {
height:25px;
width: 130px;
background: url(images/links/link_03.gif);
}
.link_04 {
height:25px;
width: 130px;
background: url(images/links/link_04.gif);
}
.link_05 {
height:25px;
width: 130px;
background: url(images/links/link_05.gif);
}
.link_06 {
height:25px;
width: 130px;
background: url(images/links/link_06.gif);
}
/* Logo */
#logo {
height: 368px;
background: url(images/img_tl.gif);
}
#logo-img {
margin-left:auto;
margin-right:auto;
margin-bot: 15px;
width: 125px;
}
#logo h1, #logo p {
margin: 0;
padding: 0px;
text-transform: lowercase;
text-align: center;
font-weight: normal;
color: #ffffff;
}
#logo h1 {
padding-top: 30px;
background: url(images/img01.gif) no-repeat;
}
#logo p {
padding-bottom: 190px;
}
#logo a {
text-decoration: none;
color: #FFFFFF;
}
/* Wrapper */
#wrapper {
width: 776px;
background:#311403;
text-align:left;
margin-top: 0px;
margin-right: auto;
margin-bottom: 50px;
margin-left: auto;
}
#banner {
height: 154px;
margin-bottom:1px;
background: url(images/img_tr.gif) no-repeat;
}
/* Widgets */
#widgets {
height: 294px;
background: url(images/img_bl.gif);
}
#widgets-logo {
width: 122px;
height: 59px;
margin-left: auto;
margin-right: auto;
background: url(images/links/sidebar_03.png) no-repeat;
}
#widgets-link{
width: 131px;
height: 23px;
background: url(images/links/sidebar_07.gif) no-repeat;
margin-top:5px;
margin-left: auto;
margin-right: auto;
}
#widgets * {
color: #FFFFFF;
}
#widgets ul {
margin: 0;
padding: 0 20px 25px 20px;
background: url(images/img04.jpg) no-repeat left bottom;
list-style: none;
}
#widgets li {
}
#widgets li ul {
padding: 0 0 20px 6px;
background: none;
line-height: 180%;
}
#widgets li li {
padding-left: 12px;
background: url(images/spacers/img05.gif) no-repeat left center;
}
#widgets h2 {
margin: 0;
padding: 0 0 20px 0;
font-size: 1em;
}
/* Slideshow */
#slideshow {
height:110px;
width: 150px;
}
/* Page */
#page {
float: right;
width: 586px;
}
#contact {
color:#F6921E;
}
#sitelinks {
margin-left:0px;
}
/* Content */
#content {
}
#content h1, #content h2 {
font-weight: normal;
margin-top: 0;
}
.pagetitle {
margin: 0 0 10px 0;
padding-top: 27px;
}
.post {
height: auto;
width: 586px;
margin-bottom: 0px;
background: #311403 url(images/spacers/img09.gif) repeat-y right top;
}
.title {
margin: 0;
padding: 0 0px;
}
.byline {
margin: 0 px;
border-bottom: 1px solid #C2C9B6;
}
.hometext{
margin-top:15px;
margin-bottom:15px;
width:auto;
height:auto;
}
.entry {
padding-top: 20px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 32px;
}
.meta {
margin: 0;
padding: 0 20px;
}
/* Rounded Corners */
.ct {
}
.ct .l {
background: url(images/corners/img10.gif) no-repeat;
}
.ct .r {
height: 15px;
background: url(images/corners/img11.gif) no-repeat right top;
}
.cb {
background: url(images/spacers/img12.gif) repeat-x left bottom;
}
.cb .l {
background: url(images/corners/img13.gif) no-repeat left bottom;
}
.cb .r {
height: 15px;
background: url(images/corners/img14.gif) no-repeat right bottom;
}
/* Footer */
#footer {
clear:both;
font-size: smaller;
height: 59px;
width: 776px;
background:url(images/img_footer.gif);
}
#footer p {
margin: 0;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got it working!
I put the background image in the wrapper that goes around already, rather than adding another div.
After that I reset the 'page' div to have the brown background color and it viola!
Thanks for the help!
I put the background image in the wrapper that goes around already, rather than adding another div.
After that I reset the 'page' div to have the brown background color and it viola!
Thanks for the help!
ASKER
I have created a container around the two top columns that div is called (top-container) I basically added the following to the css styling.
#top-container {
background: url(images/spacers/img_17.
clear:both;
}
I of course added a div around the left and right column but I don't understand where to put the (style='clear:both')
I have already tried putting it into the (top-container) div and for the sidebar div but it didn't work.
Where is this clearing supposed to go?
Open in new window