Alex Rivera | Logout

CSS: how to make label appear right of the radio?

Asked 2012-04-05T03:40:11.120
10

Say I have the following mark up:

<label for="name">Name:</label>
<input type="radio" name="name" id="name"/>

The order of the tags appear to be proper to me (in a semantic sense: label before the thing you're labeling). But I want to display this as radio button first, followed by the label. How can I do that in CSS?

Edit
Report

1 Answer

1

Hi you just define your input tag as like that

<label>Name:
<input type="radio" name="name" id="name"/></label>

<br />


<label>
<input type="radio" name="name" id="name"/> Name    
</label>
​

Live demo http://jsfiddle.net/rohitazad/bhBQn/1/

answered 2012-04-05T03:57:00.560

Your Answer