How can I make multi-line, vertically and horizontally aligned labels for radio buttons in HTML Form

Posted by Patrick Klingemann on Stack Overflow See other posts from Stack Overflow or by Patrick Klingemann
Published on 2009-05-26T16:44:38Z Indexed on 2010/04/01 6:53 UTC
Read the original article Hit count: 311

Filed under:
|
|
|
|

Assuming the following markup:

<fieldset>
    <legend>Radio Buttons</legend>
    <ol>
        <li>
            <input type="radio" id="x">
            <label for="x"><!-- Insert multi-line markup here --></label>
        </li>
        <li>
            <input type="radio" id="x">
            <label for="x"><!-- Insert multi-line markup here --></label>
        </li>
    </ol>
</fieldset>

How do I style radio button labels so that they look like the following in most browsers (IE6+, FF, Safari, Chrome:

Radio Button Labels

© Stack Overflow or respective owner

Related posts about html

Related posts about radiobutton