Home > DeveloperSection > Forums > How to increase width of check box list item
Madam Walker
Madam Walker

Total Post:22

Points:154
Posted on    September-28-2013 8:15 AM

 C# C# 
Ratings:


 1 Reply(s)
 962  View(s)
Rate this:
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!



Kate Smith
Kate Smith

Total Post:24

Points:168
Posted on    September-28-2013 9:04 AM

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;}

Don't want to miss updates? Please click the below button!

Follow MindStick