joe2730
06-13-2012, 10:03 PM
I have made two containers at the bottom of a page and I wanted to put a line underneather to separate them. But my line appears above the containers, and i'm not sure why? any ideas?
heres the html
<div class="homeboxnames">
<a href="#">News</a>
</div>
<div class="homeboxnames" style="float:right; margin-right:319px;">
<a href="#">Recent Photos</a>
</div>
<div class="homeboxes">
containers
</div>
<div class="homeboxes" style="float:right;">
containers 2
</div>
<hr />
and the css
.homeboxnames {
font-size:20px;
text-align:center;
display:block;
background-color:#FF0000;
padding:2px 20px;
-moz-border-radius:7px;
float:left;
margin-bottom:10px;
}
.homeboxnames a{
text-decoration:none;
}
.homeboxnames:hover{
background-color:#CC33FF;
}
.homeboxes {
width:490px;
height:300px;
background-color:#00FF00;
float:left;
margin-bottom:5px;
}
would I have to style the hr tag to appear at the bottom? If so what would it be?
thanks!:)
heres the html
<div class="homeboxnames">
<a href="#">News</a>
</div>
<div class="homeboxnames" style="float:right; margin-right:319px;">
<a href="#">Recent Photos</a>
</div>
<div class="homeboxes">
containers
</div>
<div class="homeboxes" style="float:right;">
containers 2
</div>
<hr />
and the css
.homeboxnames {
font-size:20px;
text-align:center;
display:block;
background-color:#FF0000;
padding:2px 20px;
-moz-border-radius:7px;
float:left;
margin-bottom:10px;
}
.homeboxnames a{
text-decoration:none;
}
.homeboxnames:hover{
background-color:#CC33FF;
}
.homeboxes {
width:490px;
height:300px;
background-color:#00FF00;
float:left;
margin-bottom:5px;
}
would I have to style the hr tag to appear at the bottom? If so what would it be?
thanks!:)