|
Posted by Steve Pugh on April 9, 2006, 5:01 am
Please log in for more thread options
>I have a series of radio buttons with a "label" to the right. I don't
>want the label to break from the radio button when the line wraps and I
>want each label/button pair to take the same space.
>
>Something like this comes to mind:
>
>nobr{width: 8em}
>
><nobr><input type="radio" ...> $5.00</nobr>
>
>
>Seems to me that nobr never made it into and html specs, or am I wrong?
>
>Also, is it OK to specify widths, horizontal margins and padding for
>inline elements?
>
>Better way?
>
>this also comes to mind:
><span><input type="radio" ...> $5.00</span>
How about <label> ? It was designed for the purpose of markin up form
control labels. Seems to be exactly what you're doing.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
|