[CLOSED] Label and LinkButton Doesn't seem to have a default font

  1. #1

    [CLOSED] Label and LinkButton Doesn't seem to have a default font

    Hi,

    While other controls seems to have a default font, somehow Label and LinkButton does not and when rendered it looks like times new roman.
    Is there a way to turn this on, so that it will match the rest (i.e. TextField, Button, etc). If not, what is the default font family being used so I can manually set the Cls?

    Thanks, J
    Last edited by Daniil; Oct 03, 2011 at 8:11 AM. Reason: [CLOSED]
  2. #2
    Hi,

    There is no way except setting a respective value of .Cls property.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    
        <style type="text/css">
            .font {
                font-family: tahoma, arial, helvetica, sans-serif;
                font-size: 12px;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Label runat="server" Text="Label" Cls="font" />
            <ext:LinkButton runat="server" Text="LinkButton" Cls="font" />
            <ext:TextField runat="server" Text="TextField" />
            <ext:Button runat="server" Text="Button" />
        </form>
    </body>
    </html>
  3. #3
    Thanks Daniil,

    Please close this ticket.

Similar Threads

  1. Replies: 4
    Last Post: Jul 25, 2013, 8:51 AM
  2. [CLOSED] How to change ext.net default font to another like (Lucida sans)?
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 06, 2011, 2:53 PM
  3. [CLOSED] set Html Editor Default font colour
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 18, 2009, 6:58 AM
  4. How to set Label Font size and color
    By Dinesh.T in forum 1.x Help
    Replies: 6
    Last Post: Aug 11, 2009, 2:17 PM
  5. How to change default font of HTML Editor
    By VietView in forum 1.x Help
    Replies: 0
    Last Post: Mar 25, 2009, 8:22 AM

Posting Permissions