Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

Change Font Size of Checkbox Text

How can I change the size of the text of a checkbox?

 <asp:CheckBoxList ID="CopyGiven" runat="server" RepeatDirection="Horizontal" Font-Size="Large">
      <asp:ListItem Value="Y">Yes</asp:ListItem>
      <asp:ListItem Value="N">No</asp:ListItem>
 </asp:CheckBoxList>

Open in new window


I would like it to be the same same as the other text on the form which is 13px.
0
huerita37
Asked:
huerita37
2 Solutions
 
DOSLoverCommented:
Please see a solution suggested in this link. It uses a css to accomplish required size.
http://forums.asp.net/t/1858450.aspx/1
0
 
lenordisteCommented:
use CSS !

specify the CSS class for your checkboxlist:
<asp:CheckBoxList ID="CopyGiven" runat="server" RepeatDirection="Horizontal" CssClass="myCheckBox">

Open in new window


then simply add this style to your aspx:
<style>
.myCheckBox td 
{
    font-size:13px;
}
</style>

Open in new window

0
 
huerita37Author Commented:
Thank you for a quick response.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now