TopBuyPC
06-15-2010, 12:18 AM
Hello all,
I am very new to CSS and have a bit of an issue although I am pretty sure this is an easy fix. I have a website with the following CSS
#container {
position: center;
width: 954px;
height: auto;
}
#leftb {
padding: 5;
position: absolute;
left: 0;
height: auto;
width: 234px;
margin-top: 145px;
text-align: left;
}
#leftb .nav {
padding: 5;
position: absolute;
width: 234px;
left: 0;
background-color: #DCE6FB;
margin-top: 24px;
text-align: left;
}
#leftb .navbg {
padding: 5;
position: absolute;
width: 234px;
background-color: #184684;
font-weight: bold;
color: #FFFFFF;
left: 0;
text-align: left;
}
#leftb .mlist {
padding: 5;
position: absolute;
width: 234px;
left: 0;
background-color: #DCE6FB;
margin-top: 24px;
text-align: left;
}
#leftb .mlistbg {
padding: 5;
position: absolute;
width: 234px;
background-color: #184684;
font-weight: bold;
color: #FFFFFF;
left: 0;
text-align: left;
}
and the html is here http://topbuypc.com/index.php?s=config
I am trying to get the mailing list right under the navigation, and when the navigation expands with more links I would like the mailing list to move down with it. I can position the mailing list with margin-top: #px; but then I would have to change the number everytime I add more links to the navigation box. Please help, thanks everyone!
I am very new to CSS and have a bit of an issue although I am pretty sure this is an easy fix. I have a website with the following CSS
#container {
position: center;
width: 954px;
height: auto;
}
#leftb {
padding: 5;
position: absolute;
left: 0;
height: auto;
width: 234px;
margin-top: 145px;
text-align: left;
}
#leftb .nav {
padding: 5;
position: absolute;
width: 234px;
left: 0;
background-color: #DCE6FB;
margin-top: 24px;
text-align: left;
}
#leftb .navbg {
padding: 5;
position: absolute;
width: 234px;
background-color: #184684;
font-weight: bold;
color: #FFFFFF;
left: 0;
text-align: left;
}
#leftb .mlist {
padding: 5;
position: absolute;
width: 234px;
left: 0;
background-color: #DCE6FB;
margin-top: 24px;
text-align: left;
}
#leftb .mlistbg {
padding: 5;
position: absolute;
width: 234px;
background-color: #184684;
font-weight: bold;
color: #FFFFFF;
left: 0;
text-align: left;
}
and the html is here http://topbuypc.com/index.php?s=config
I am trying to get the mailing list right under the navigation, and when the navigation expands with more links I would like the mailing list to move down with it. I can position the mailing list with margin-top: #px; but then I would have to change the number everytime I add more links to the navigation box. Please help, thanks everyone!