DaveDev
DaveDev

Reputation: 42185

How can I get the text to appear on the left side of the checkbox?

suppose I have a checkbox, e.g.

<input type="checkbox">1</input>

It's going to appear like this:

enter image description here

Is it possible for me to get it to appear on the left of the text box, e.g.:

What do I need to do?

enter image description here

Upvotes: 0

Views: 168

Answers (3)

Amani
Amani

Reputation: 525

Try this:

<label>1 <input type="checkbox" /></label>

Upvotes: 3

PRAH
PRAH

Reputation: 680

one way is

<label>1<input type="checkbox"/></label>

Other way is

http://jsbin.com/uyohar/1

Upvotes: 0

user2533475
user2533475

Reputation:

As far as I know, you can't put the number on the left side the way you are trying to do it, but one could do it this way:

<label>1</label><input type="checkbox"></input>

Upvotes: 0

Related Questions