CSS radioButton list
-
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatLayout="flow" style="color: #FF0000" >
<asp:ListItem Selected="True" class="margin">Clothing</asp:ListItem>
<asp:ListItem class="margin">Shoes</asp:ListItem>
<asp:ListItem class="margin">Beg</asp:ListItem>
</asp:RadioButtonList>can anyone told me how to make the font larger when i'm selected on particular radio button list ~ what is the CSS style code
-
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatLayout="flow" style="color: #FF0000" >
<asp:ListItem Selected="True" class="margin">Clothing</asp:ListItem>
<asp:ListItem class="margin">Shoes</asp:ListItem>
<asp:ListItem class="margin">Beg</asp:ListItem>
</asp:RadioButtonList>can anyone told me how to make the font larger when i'm selected on particular radio button list ~ what is the CSS style code
The radio button seems to be a group of elements, input and span tags. You would have to use jquery to alter the assigned class or style value of the label after the input tag, using something like, Set a Javascript event to listen for radio button value change, and when the event fires, run a function to alter the CSS of the label tag. http://stackoverflow.com/questions/6505857/how-to-get-the-text-after-a-radio-button[^] I can do it with drop down list, never done it with radio buttons, I might need to do some more research on this. [edit] you may have to run each on every radio button to set the font back to normal, and then change the font on the selected one. I think next sibbling will move from the input tag to the label for adjustment.
-
The radio button seems to be a group of elements, input and span tags. You would have to use jquery to alter the assigned class or style value of the label after the input tag, using something like, Set a Javascript event to listen for radio button value change, and when the event fires, run a function to alter the CSS of the label tag. http://stackoverflow.com/questions/6505857/how-to-get-the-text-after-a-radio-button[^] I can do it with drop down list, never done it with radio buttons, I might need to do some more research on this. [edit] you may have to run each on every radio button to set the font back to normal, and then change the font on the selected one. I think next sibbling will move from the input tag to the label for adjustment.
-
The radio button seems to be a group of elements, input and span tags. You would have to use jquery to alter the assigned class or style value of the label after the input tag, using something like, Set a Javascript event to listen for radio button value change, and when the event fires, run a function to alter the CSS of the label tag. http://stackoverflow.com/questions/6505857/how-to-get-the-text-after-a-radio-button[^] I can do it with drop down list, never done it with radio buttons, I might need to do some more research on this. [edit] you may have to run each on every radio button to set the font back to normal, and then change the font on the selected one. I think next sibbling will move from the input tag to the label for adjustment.
ok thx ~ i try on it :-O