Change Button Font Name

3 posts, 0 answers
  1. big-O
    big-O avatar
    8 posts
    Member since:
    Jun 2010

    Posted 24 Mar 2011 Link to this post

    Hello, please help me.

    I uses RadFormDecorator and i want to change the font family of button
    I apply this css style

      

     

     

     

    .RadForm_Sitefinity.rfdButton  input[type="button"].rfdDecorated
    {
          font: normal 11px Tahoma, Arial, Sans-serif !important;
    }

     

     

    it change only font-style and font-size but the font family is not change.
    please help me
    thank you

     

     

     

     

     

  2. Bozhidar
    Admin
    Bozhidar avatar
    679 posts

    Posted 24 Mar 2011 Link to this post

    Hi,

    The following code works as you like to:

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head id="Head1" runat="server">
        <title></title>
        <style id="Style1" runat="server" type="text/css">
            html.RadForm_Sitefinity.rfdButton a.rfdSkinnedButton input.rfdDecorated
            {
                font: normal 11px Tahoma, Arial, Sans-serif !important;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"
            Skin="Sitefinity" />
            <asp:Button ID="btn1" runat="server" Text="I am button with changed fonts" />
        </form>
    </body>
    </html>


    Best wishes,
    Bojo
    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. big-O
    big-O avatar
    8 posts
    Member since:
    Jun 2010

    Posted 24 Mar 2011 Link to this post

    it's work. Thank you very much.
Back to Top