Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-02-2007, 07:02 AM XHTML form - problem
Super Talker

Posts: 104
Location: Northern Ireland
Trades: 0
Hi

This form looks fine on almost all browser - yet it appears that the name field and text field are not lining up correctly. Anyone know why? Help greatly appreciated in this one - I thought I fixed it but still no joy.


<style type="text/css">
#internships-form {
clear: both;
}
input.txt, textarea, select {
background-color: #ffffff;
border: 1px solid #003366;
padding: 4px;
}
input.btn {
padding: 2px 6px;
font-weight: bold;
color: #000000;
background-color: #ffffff;
border: 1px solid #003366;
}
label, dl dt {
color: #003366;
font-weight: bold;
}
#internships-form textarea {
width: 300px;
}
#internships-form p {
margin: 0.75em 0 0 0;
clear: both;
}
#internships-form p label {
display: block;
float: left;
width: 150px;
}
#internships-form p input.txt {
width: 330px;
}
textarea#message {
width: 330px;
height: 150px;
}

/* Name Block */
dl.name-block {
padding: 0;
margin: 0;
}
dl.name-block dt {
float: left;
width: 150px;
padding: 0;
margin: 0;
font-weight: bold;
}
dl.name-block dd {
padding: 0;
margin: 0 0 0 150px;
}
* html dl.name-block dd {
padding: 0 0 0 153px;
margin: 0;
}
dl.name-block dd input.txt {
display: block;
width: 10em;
}
dl.name-block dd label {
display: block;
color: #003366;
font-size: 0.75em;
font-weight: normal;
}
dl.name-block dd label.first {
float: left;
width: 18em;
}
dl.name-block dd label.last {
margin-left: 18em;
}
* html dl.name-block dd label.last {
margin: 0;
}
</style>


<div id="internships-form">
<FORM action="http://members.freewebs.com/formMail.jsp" method="post">
<input type="hidden" name="userid" value="???????">
<input type="hidden" name="next" value="http://www.??????/contact.html">


<dl class="name-block">
<dt>Name
<dd>
<label for="first" class="first"><input class="txt" type="text" name="first" id="first" /><font size="2">First</font></label>
<label for="last" class="last"><input class="txt" type="text" name="last" id="last" /><font size="2">Last</font></label>

</dl>
<p><label for="work_phone">Contact Phone</label> <input class="txt" type="text" name="contact_phone" id="work_phone" />
<p><label for="contact_email">Contact E-Mail</label> <input class="txt" type="text" name="contact_email" id="contact_email" />
<p><label for="message">Enquiry</label>
<textarea name="message" id="message" cols="30" rows="10"></textarea>
<p><label>&nbsp;</label> <input class="btn" type="submit" name="submitted" value="Submit" />



<br>
<a href="subjects.html">Previous</a><BR><a href="links.html">Next</a><BR>
</form></div></div></div>
sebastianx is offline
Reply With Quote
View Public Profile Visit sebastianx's homepage!
 
 
Register now for full access!
Old 01-02-2007, 10:20 AM Re: XHTML form - problem
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Your order's off, and you haven't closed your tags properly.

Try this:
Code:
<p>
  <input type="text" name="first" id="first" value="" size="30" tabindex="1" />
  <label for="first">First Name (required)</label>
  </p>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to XHTML form - problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12177 seconds with 12 queries