css - Html inline div alignment issue -


<div style="display:inline;  margin-left:10%;">      <input type="radio">      <span></span> </div>  <div style="display:inline;  margin-left:10%;">      <input type="radio">      <span></span> </div>  <div style="display:inline;  margin-left:10%;">      <input type="radio">      <span></span> </div> 

hello have layout similar 1 above. have other things in php file, irrelevant. example every new 5th element causes new line (br), make sense when see pictures.

here image representation of outcome:

this need :

how can possibly this, appreciate idea. cheers.

note: span tags contain text next radio buttons.

iyi akşamlar :) can remove div's, create class inside radio buttons , put them altogether container each row.

live demo here

<div class="container">          <input type="radio" class="radyo">          <div class="text">a2</div>           <input type="radio"class="radyo">          <div class="text">a3</div>           <input type="radio"class="radyo">          <div class="text">a4</div>           <input type="radio"class="radyo">          <div class="text">a5</div> </div>   <div class="container">          <input type="radio"class="radyo">          <div class="text">beyler ben geldim</div>           <input type="radio"class="radyo">          <div class="text">tamam</div>  </div> 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -