James,

Also, might want to consider getting rid of those ugly <br/>'s...

You could try:

<label for="name"><span>Name</span><input type="text" id="name"/></label>

Display the label and the span as a block and float the span and the input
to the left, put a width on the span and you should be sorted.

Greetings,

Matijs

On Thu, May 15, 2008 at 6:44 PM, james <[EMAIL PROTECTED]> wrote:

> Fixed it now thanks
>
> David Owens wrote:
>
>> You need a block level element inside the form element. A fieldset would
>> work nicely.
>>
>> 2008/5/15 james <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
>>
>>    Hi All;
>>
>>
>>        On my contact page i have used this code, however it comes
>>        back as not being valid XHTML 1.0 Transitional, am i missing
>>        something silly here?
>>        <form>
>>        <label for="user">Name</label> <input type="text" id="user"
>>        value="" /><br />
>>        <label for="company">Company:</label> <input type="text"
>>        id="company" value="" /><br />
>>        <label for="emailaddress">Email Address:</label> <input
>>        type="text" id="emailaddress" value="" /><br />
>>        <label for="comments">Comments:</label>
>>        <textarea name="comments">
>>        </textarea>
>>        <br />
>>        <input type="submit" id="submitbutton" value="Submit" />
>>        </form>
>>
>>        Thanks James
>>
>>
>>
>>
>>    *******************************************************************
>>    List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>>    Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>>    Help: [EMAIL PROTECTED]
>>    <mailto:[EMAIL PROTECTED]>
>>    *******************************************************************
>>
>>
>>
>> *******************************************************************
>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>> Help: [EMAIL PROTECTED]
>> *******************************************************************
>> ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1430 -
>> Release Date: 13/05/2008 07:31
>>
>>
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> *******************************************************************
>
>


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to