Hi,
I have a parent div with two child divs (one floated left and one right) inside the parent.
The web page must work on both 1024px definitions and 1620px so they need to be fluid if expanded in width. All margins look fine with the exception of the vertical space between the left and right divs. I am using jquery to maintain equal height of the two divs. How can I keep the space between the divs fixed? I am using percentages for the div widths so as I expand the screen width, the space between the divs increases so is way way wider than the left and right margins.
The markup:
<div class="divLoginMain">
<div class="divLoginLeft">
<div class="divH4Title">
<h4 class="h4Title">Welcome to Our Website</h4>
</div>
<table cellspacing="0" class="borderNone">
<tr>
</tr>
<tr>
</tr>
</table>
</div>
<div class="divLoginRight">
<div class="divH4Title">
<h4 class="h4Title">Status - Logged In</h4>
</div>
<table cellspacing="0" class="borderNone">
<tr>
</tr>
<tr>
</tr>
</table>
</div>
</div>
And the CSS:
.divLoginMain
{
margin-top:5px;
margin-left:.6%;
margin-right:.2%;
border: solid 3px #191970;
border-spacing: 0;
width:97.5%;
padding-top:7px;
padding-bottom:7px;
padding-left:7px;
padding-right:7px;
overflow:hidden;
}
.divLoginLeft
{
border: solid 3px #191970;
border-spacing: 0;
float:left;
width:61.5%;
padding-top:0px;
padding-bottom:10px;
padding-left:16px;
padding-right:16px;
text-align:left;
font-family:Arial;
color:#17238C;
}
.divLoginCenter
{
border:collapse;
float:left;
width:1px;
}
.divLoginRight
{
border: solid 3px #191970;
border-spacing: 0;
float:right;
width:31.5%;
padding-top:0px;
padding-bottom:10px;
padding-left:16px;
padding-right:16px;
text-align:left;
font-family:Arial;
color:#17238C;
}
Thank you,
James