simon23
08-15-2009, 05:07 AM
Hi
Can anyone help I'm totally stuck :/
http://www.leahaxl.co.uk/Contact.php#contact
If you look at the link above, you'll see my contact form. My problem is that there are 2 div's here and I want to center align them side by side, but I'm getting no luck :(
If you shrink the browser window the 2nd div goes to a new line below, which doesnt look right. I was wondering how to "lock" the two divs to that line.
Any help would be much appreciated!!
Here's my CSS at the moment:
#contact_container{
margin-left:auto;
margin-right:auto;
text-align:center;
width:800px;
position:relative;
height:150px;
display:block;
}
#phpform{
background-color:green;
float:left;
margin-left:10px;
font:"Segoe UI";
color:#47878F;
position:relative;
bottom:135px;
text-align:left;
height:10px;
width:740px;
}
#phptext{
background-color:fuchsia;
float:left;
margin-left:165px;
font:"Segoe UI";
line-height:23px;
color:#47878F;
position:relative;
bottom:136px;
text-align:left;
width:60px;
}
Can anyone help I'm totally stuck :/
http://www.leahaxl.co.uk/Contact.php#contact
If you look at the link above, you'll see my contact form. My problem is that there are 2 div's here and I want to center align them side by side, but I'm getting no luck :(
If you shrink the browser window the 2nd div goes to a new line below, which doesnt look right. I was wondering how to "lock" the two divs to that line.
Any help would be much appreciated!!
Here's my CSS at the moment:
#contact_container{
margin-left:auto;
margin-right:auto;
text-align:center;
width:800px;
position:relative;
height:150px;
display:block;
}
#phpform{
background-color:green;
float:left;
margin-left:10px;
font:"Segoe UI";
color:#47878F;
position:relative;
bottom:135px;
text-align:left;
height:10px;
width:740px;
}
#phptext{
background-color:fuchsia;
float:left;
margin-left:165px;
font:"Segoe UI";
line-height:23px;
color:#47878F;
position:relative;
bottom:136px;
text-align:left;
width:60px;
}