Solved

Change Font Size of Checkbox Text

Posted on 2013-06-22
3
441 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you for a quick response.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to Popup 37 78
ASP.net pdf file opening in debug mode but not on web 13 24
Duplicate a row 2 29
Paging GridView 7 32
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

17 Experts available now in Live!

Get 1:1 Help Now