- Original Poster
- #1
Hi,
Having heard a lot of positive stuff about it, I took some time out this afternoon to learn a little bit about PHP. I've managed to get something basic functioning on a test page, but I'm struggling to get the entry boxes aligned tidily while still keeping the page W3 compliant.
The code looks like:
but at the moment the boxes all align next to the text on the left of the page, so look quite untidy in the live page - http://employmentlawclinic.com/underconstruction/draftpage.php.
Can anyone give me some CSS or other coding tips to get these aligned? If it matters, the page is written in XHTML 1.0.
Thanks,
Karl Limpert
Having heard a lot of positive stuff about it, I took some time out this afternoon to learn a little bit about PHP. I've managed to get something basic functioning on a test page, but I'm struggling to get the entry boxes aligned tidily while still keeping the page W3 compliant.
The code looks like:
<div><label for="name">Name:
<input type="text" size="30" name="name" id="name"/></label></div>
<div><label for="company">Company:
<input type="text" size="30" name="company" id="company"/></label></div>
<div><label for="email">E-mail Address:
<input type="text" size="30" name="email" id="email"/></label></div>
<div><label for="phone">Phone Number:
<input type="text" size="30" name="phone" id="phone"/></label></div>
<input type="text" size="30" name="name" id="name"/></label></div>
<div><label for="company">Company:
<input type="text" size="30" name="company" id="company"/></label></div>
<div><label for="email">E-mail Address:
<input type="text" size="30" name="email" id="email"/></label></div>
<div><label for="phone">Phone Number:
<input type="text" size="30" name="phone" id="phone"/></label></div>
but at the moment the boxes all align next to the text on the left of the page, so look quite untidy in the live page - http://employmentlawclinic.com/underconstruction/draftpage.php.
Can anyone give me some CSS or other coding tips to get these aligned? If it matters, the page is written in XHTML 1.0.
Thanks,
Karl Limpert