Making radio buttons show up to the right

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
User avatar
Christopher
Site Administrator
Posts: 13595
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Making radio buttons show up to the right

Post by Christopher »

If you want then inline, you don't need to put them in anything. Just:

<input type="radio" ...><img src="visa.jpg"> <input type="radio" ...><img src="mc.jpg"> ...
(#10850)
User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Making radio buttons show up to the right

Post by Celauran »

You've got them wrapped in divs, which are block level elements. display: inline will fix that.
lindseynicole
Forum Newbie
Posts: 4
Joined: Mon Oct 05, 2015 2:11 am

Re: Making radio buttons show up to the right

Post by lindseynicole »

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