How do I customize an asp:Button class?

Posted by Community Admin on 03-Aug-2018 23:39

How do I customize an asp:Button class?

All Replies

Posted by Community Admin on 10-Apr-2013 00:00

How do I customize an asp:Button class?I have this bit of code in an ASPX file:[CODE]
<div class="buttonContainer" style="clear:both;width:100%;text-align:left">
   <asp:Button ID="btnProceed" runat="server"  Text="Next" OnClick="ProceedButton_Clicked" Enabled="true" />
</div>[/CODE]
So, if I want to make the button bigger or bolder text, how would I do it? 

Posted by Community Admin on 12-Apr-2013 00:00

Hi,

Styling controls on simple .aspx page is a standard asp.net procedure and it is not directly relate to our product. However you can use the CssClass property on the asp:Button control with value of yourClass.
Then you can refer to the class in your CSS file like this:

.yourClass
      

You need to also put a reference in the <head> tag of the .aspx page to point to your CSS file.

Greetings,
Kaloyan
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed