Solved

Change Font Size of Checkbox Text

Posted on 2013-06-22
3
457 Views
Last Modified: 2013-06-23
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
Comment
Question by:huerita37
3 Comments
 
LVL 5

Accepted Solution

by:
DOSLover earned 400 total points
ID: 39268879
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
 
LVL 11

Assisted Solution

by:lenordiste
lenordiste earned 100 total points
ID: 39269156
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
 

Author Comment

by:huerita37
ID: 39269264
Thank you for a quick response.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question