html - Positioning radio buttons vertically at the same spot -


i'm trying position radio buttons @ same spot vertically while there label on left side. here desired outcome:

http://oi58.tinypic.com/dnk8yh.jpg

i'm having problems positioning second radio button same spot first one.

like this?

to align label top relative group of radio buttons, use vertical-align:top on label , place radio buttons in div; don't forget make inline-block, otherwise label , buttons stay on different lines:

#radio-group{      display:inline-block  }  #label{      vertical-align:top;  }
<span id="label">label</span>   <div id="radio-group">      <input type="radio" name="rg">radio1<br>      <input type="radio" name="rg">radio2  </div>


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -