It should still really be a label because it's associated with a form control. Give it an ID or class to override the default label styles (e.g. clear:none; float:none; display: inline ;width: auto; margin:0;) and then you can use position: relative; top:-0.8em (looks about right) to pull it up into place.

On Sun, 03 Dec 2006 15:24:32 +1000, Al Kendall <[EMAIL PROTECTED]> wrote:

Hi John,
Thanks for your reply.... the main reason i didn't use the label is that it drops to the next line. I want the 'Details' label to line up at the same level as the radio button with the unput field for the details beside it. This is the link to the form in question, the 'Details' label
and feild is in the 'Trade History' feildset.

Cheers
Al

http://www.alsfitt.com/database-form.php



On 12/2/06, John Faulds <[EMAIL PROTECTED]> wrote:

Would need to see the associated CSS but why are you not using a label for
'Details'?

On Sat, 02 Dec 2006 16:58:57 +1000, Al Kendall <[EMAIL PROTECTED]>
wrote:

> Hi,
>      I'm having troubles with my some inline text not lining up at the
> right
> height after a <label> in my form. See pic attached. The sample code
> is
> below....
>
>
> ..................
>     <label for="fab">Ex-Kiwi: </label>
>     <input name="tradegroup" id="fab" type="radio" value="FAB"
> tabindex="28"
> />
>     <br />
>     <label for="other">Other: </label>
>     <input name="tradegroup" id="other" type="radio" value="OTHER"
> tabindex="29" />
>     <span>Details: </span>
>     <input name="otherdetails" id="otherdetails" type="text"
> tabindex="30"
> />
>     <p>What was the dates of your course?</p>
>     <label for="startdate">Start Date: </label>
> <input name="startdate" id="startdate" type="text" tabindex="31" />
> ..........................



--
Tyssen Design
www.tyssendesign.com.au
Ph: (07) 3300 3303
Mb: 0405 678 590


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







--
Tyssen Design
www.tyssendesign.com.au
Ph: (07) 3300 3303
Mb: 0405 678 590


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

Reply via email to