Advertise with us

How to increase width of check box list item

How to increase the width of checkbox list item text,
I have more space on right side but the text is coming in multiple lines but not coming to right side.
and also it is possible to place the checkbox left to the text?
Thanks in advance!

Last updated:9/28/2013 9:04:32 AM

1 Answers

Kate Smith
Kate Smith

Hello Madam!

HTML

<div class="ques">Is it an animal?</div><div class="cb"><input type ="checkbox" value="yes" /></div>
<div class="ques">Is it an mineral?</div><div class="cb"><input type ="checkbox" value="yes" /></div>
<div class="ques">Is it an vegetable?</div><div class="cb"><input type ="checkbox" value="yes" /></div>
<div class="ques">Is it an fruit?</div><div class="cb"><input type ="checkbox" value="yes" /></div>
<div class="ques">Is it man-made?</div><div class="cb"><input type ="checkbox" value="yes" /></div>

CSS

.ques {width:66%;display:inline;float:left;}
.cb {width:33%;display:inline;float:left;}

Last updated:9/28/2013 9:04:32 AM

Answer