All I want to do is change font name and size of all nodes

4 posts, 0 answers
  1. Joe Sixpack
    Joe Sixpack avatar
    6 posts
    Member since:
    Apr 2010

    Posted 09 Apr 2010 Link to this post

    I'm really struggling with how to just change the font to Arial and the pt size for all nodes.   I'm using the Default skin.  What is the simplest way to do this?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Apr 2010 Link to this post

    Hi Joe,

    Add the following CSS on page in order to set the font-size and family for all nodes in TreeView.

    CSS:
     
    <style type="text/css"
            .RadTreeView_Default 
            { 
                font-familyarial !important; 
                font-size13px !important; 
            } 
    </style> 

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    2 posts
    Member since:
    Jan 2012

    Posted 16 Apr 2012 Link to this post

    Hi,

    I need to change the font family for every node on my treeview. I used the example mention previously but it doesn't work.
    It only changes the font family for the root node and its first two children. All the other nodes remain unchanged.

    This is the code I used

    <style type="text/css">
        .RadTreeView_Default
        {
            font-family: arial !important;
            font-size: 13px !important;
            color: red !important;
        }     
    </style>


    Attached you will find a screen shot


  5. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 17 Apr 2012 Link to this post

    Hello Kevin,

    The example mentioned works for me. Have you inspected your html to see if the rule is somehow being overwritten by some other style rule?
Back to Top