Click here to Skip to main content
15,790,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all ,

I am using radio button list in a quiz application on my website.But i want to style this list to be something like this :[^]

So can this be done ?

Thanks in advance.
Updated 3-Sep-11 4:23am

1 solution

Yes this should be possible with the right CSS - just like these are being advertised on the website.
Share this answer
mhamad zarif 3-Sep-11 9:31am    
ok i have used this one :

and this is what i did in the html :

<div class="checkbox" id="Cooking">
<asp:CheckBoxList ID="CheckBoxListAnswer" runat="server">

But it is only showing the effect on the first item in the checkbox list and the others items are only displaying the text .So what is wrong ?
Abhinav S 3-Sep-11 9:38am    
Make sure that the style you picked up is for the checkboxlist and not for a single check box.
mhamad zarif 3-Sep-11 9:41am    
here is the html generated at runtime :

<div class="checkbox" id="Cooking">
<table id="ctl00_ContentPlaceBody_CheckBoxListAnswer" border="0">
<td><input id="ctl00_ContentPlaceBody_CheckBoxListAnswer_0" type="checkbox" name="ctl00$ContentPlaceBody$CheckBoxListAnswer$0" /><label for="ctl00_ContentPlaceBody_CheckBoxListAnswer_0">Good</label></td>
<td><input id="ctl00_ContentPlaceBody_CheckBoxListAnswer_1" type="checkbox" name="ctl00$ContentPlaceBody$CheckBoxListAnswer$1" /><label for="ctl00_ContentPlaceBody_CheckBoxListAnswer_1">Bad</label></td>
<td><input id="ctl00_ContentPlaceBody_CheckBoxListAnswer_2" type="checkbox" name="ctl00$ContentPlaceBody$CheckBoxListAnswer$2" /><label for="ctl00_ContentPlaceBody_CheckBoxListAnswer_2">Not bad</label></td>
mhamad zarif 3-Sep-11 9:47am    
i think that the problem is that every input must be surrounded by the div.Is that true?and if yes how can i make sure that all inputs are surrounded by this div ?
Abhinav S 3-Sep-11 9:48am    
See if this can help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900