Solved

Change Font Size of Checkbox Text

Posted on 2013-06-22
3
448 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now