rayray1
04-10-2008, 07:50 PM
how do i get two floating divs to not stack when the window is minimized- meaning the div floated right drops below the div floated left, breaking the design. i've tried clear: both, min-width on parent and children, etc. please advise:
.bnr
{
height: 75px;
min-width: 741px;
position:relative;
width: 100%;
}
.bnrLft
{
background-image: url("../images/bnrLft.gif");
float: left;
height: 75px;
width: 590px;
}
.bnrRgt
{
float: right;
position:relative;
}
<div class="bnr">
<div class="bnrLft">
</div>
<div class="bnrRgt">
<a href="http://www.michigan.gov" target="blank">
<img alt="image" src="images/bnrRgt.gif" /></a></div>
</div>
.bnr
{
height: 75px;
min-width: 741px;
position:relative;
width: 100%;
}
.bnrLft
{
background-image: url("../images/bnrLft.gif");
float: left;
height: 75px;
width: 590px;
}
.bnrRgt
{
float: right;
position:relative;
}
<div class="bnr">
<div class="bnrLft">
</div>
<div class="bnrRgt">
<a href="http://www.michigan.gov" target="blank">
<img alt="image" src="images/bnrRgt.gif" /></a></div>
</div>