Hi,
I'm have major trouble understanding how to line up my form.
here is the html...
here is the css
I end up with
how do I make the financial info box move down to the left so the buttons are on the right?
thanks 1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I'm have major trouble understanding how to line up my form.
here is the html...
Code:
<div id="main">
<div id="content">
<div class="post" id="first">
<h2><img class="icon" src="images/icon-advice.gif" alt="" /> Advice Request Form</h2>
<p>To have one of our fully qualified, professional advisers contact you to discuss your requirements, simply submit the form below.</p>
</div>
<form id="advice" action="[URL unfurl="true"]http://www.homeloanpartnership.co.uk/cgi-bin/leadform.cgi"[/URL] method="post">
<fieldset>
<input type="hidden" name="rtn_url" id="rtn_url" value="[URL unfurl="true"]http://www.homeloanpartnership.co.uk/leads/thanks.html"[/URL] />
<legend>Personal Details </legend>
<ol>
<li>
<label for="fullname">Name<em>*</em></label>
<input type="text" name="fullname" id="fullname" />
</li>
<li>
<label for="address1">Address<em>*</em></label>
<input type="text" name="address1" id="address1" />
</li>
<li>
<label for="address2">Address 2</label>
<input type="text" name="address2" id="address2" />
</li>
<li>
<label for="town">Town/City<em>*</em></label>
<input type="text" name="town" id="town" />
</li>
<li>
<label for="county">County</label>
<input type="text" name="county" id="county" />
</li>
<li>
<label for="postcode">Postcode<em>*</em></label>
<input type="text" name="postcode" id="postcode" />
</li>
</ol>
</fieldset>
<fieldset>
<legend>Contact Details </legend>
<ol>
<li>
<label for="email">Email<em>*</em></label>
<input type="text" name="email" id="email" />
</li>
<li>
<label for="phone">Phone<em>*</em></label>
<input type="text" name="phone" id="phone" />
</li>
<li>
<label for="mobile">Mobile</label>
<input type="text" name="mobile" id="mobile" />
</li>
<li>
<label for="best">Best Time<em>*</em></label>
<select name="best" id="best">
<option value="">Please Select</option>
<option value="Morning">Morning</option>
<option value="Afternoon">Afternoon</option>
<option value="Evening">Evening</option>
<option value="Weekend">Weekend</option>
</select>
<label for="method">Preferred Method<em>*</em></label>
<select name="method" id="method">
<option value="">Please Select</option>
<option value="Email">Email</option>
<option value="Phone">Phone</option>
</select>
</li>
</ol>
</fieldset>
<fieldset>
<legend>Financial Information </legend>
<ol>
<li>
<label for="amount" size="5">Amount Required<em>*</em></label>
£<input type="text" name="amount" id="amount" />
</li>
<li>
<label for="reason">Reason<em>*</em></label>
<select name="Reason" id="Reason">
<option value="">Please Select</option>
<option value="Remortgage">Remortgage</option>
<option value="First Time Buyer">First Time Buyer</option>
<option value="Buy To Let">Buy To Let</option>
<option value="Equity Release">Equity Release</option>
</select>
</li>
</ol>
</fieldset>
<div id="formbut">
<ul>
<li><a href="#" onclick="checkform(document.getElementById('advice'));" title="Submit Form">Submit</a><a href="#" onclick="document.getElementById('advice').reset();" title="Clear Form">Clear</a></li>
</ul>
</div>
All fields with <em>*</em> are required.
</form>
</div>
Code:
fieldset {
float:left;
width: 220px;
margin: 0px 0px 0px 15px;
clear:bottom;
}
fieldset legend, fieldset em {
color: #3DB6FF;
}
fieldset label {
display: inline-block;
width: 80px;
margin: 0px 0px 0px 5px;
}
input {
width:120px;
}
select {
width:123px;
}
#amount {
width:106px;
}
#formbut a {
font-size: 13px;
text-decoration: none;
float: left;
font-weight: normal;
letter-spacing: 0;
color: #2B2B2B;
background: #E6E6E6;
display: block;
width: 100px;
text-align: center;
padding: 5px 0;
margin: 10px 10px 10px 15px;
}
#formbut a:hover {
background: #787878;
color: #E6E6E6;
}
#formbut li {
list-style-type: none;
}
I end up with
how do I make the financial info box move down to the left so the buttons are on the right?
thanks 1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.