Hi,
Here's a start then but I've kept it simple because i would have preferred to use fieldsets and legends but I think it might confuse you at this stage.
Code:
<form id="contact-form" method="post" action="">
<div>
<label>First Name:</label>
<input type="text" name="textfield" />
<br />
<label>Company:</label>
<input type="text" name="textfield" />
<br />
<label>Email:</label>
<input type="text" name="textfield" />
<br />
<label>Telephone:</label>
<input type="text" name="textfield" />
<br />
<label>Comments:</label>
<textarea name="textarea" cols="50" rows="5"></textarea>
<br />
<div class="latest-news">
<p><strong>Receive Latest News Via Email:</strong></p>
<label>Yes</label>
<input name="radio1" type="radio" value="Yes" />
<label>No</label>
<input name="radio1" type="radio" value="No" />
</div>
<input class="submit" type="submit" name="Submit" value="Submit" />
</div>
</form>
Code:
#contact-form label {
float:left;
font-weight:bold;
padding-right:10px;
position:relative;
text-align:right;
top:5px;
width:6em;
}
#contact-form input {
margin-top:3px;
margin-bottom:3px;
width:10em;
}
.latest-news{margin:10px 0 10px 4em;}
#contact-form .latest-news label{
float:none;
top:0;
padding:0;
vertical-align:middle
}
#contact-form .latest-news input{
width:auto;
vertical-align:middle;
margin-right:20px
}
.submit{margin-left:3em}
#contact-form textarea{
width:15em;
margin:5px 0 10px 10px ;
}
I notice you have said things like 48% width and padding:5px. What does that equal? 100% + 10px = ????
You have no idea what that will equal and whether it will fit in your container. As you have fixed width containers and a fixed width layout then define the widths in pixels and not percentages. If you set to elements at 50% width then its likely that ie will make then 101% due to rounding errors with percentages. Use the exact pixel width you need.
I suggest you go through that left column section and make sure all your widths,margins and padding add up to the available space correctly. I notice that in Ie6 your right column is much wider than it should be so double check everything fits in the space allocated.
Bookmarks