Center text on toolbar button

6 posts, 0 answers
  1. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 09 Feb 2009 Link to this post

    Hello!

    I doubled the height of a toolbar and it's buttons from the default height. This works fine, but the text on the buttons is no more centered. How can I center the text on the toolbar buttons?

    Regards Markus
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Feb 2009 Link to this post

    Hi Markus,

    Actually the text of RadToolBar buttons has padding on both sides and you can set it with the following css style:

    .RadToolBar_Default .rtbText {  
        padding:0 20px !important;  

    Greetings,
    Yana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 10 Feb 2009 Link to this post

    Hello Yana,

    thanks for information, but this is not working, the text of the buttons is now 20px left from button border, but it is not centered. I need it centered horizontally and verticaly.

    Regards Markus
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Feb 2009 Link to this post

    Hello Markus,

    With the provided in my previous post css style the text of the buttons should have 20px on left and right side - horizontally centered. Please set top and bottom padding to some value in order to fit in the height of the toolbar.

    Greetings,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 12 Feb 2009 Link to this post

    Hello Yana,

    I opened a support Ticket to send you a sample project.

    Regards Markus
  7. Markus
    Markus avatar
    196 posts
    Member since:
    Dec 2007

    Posted 12 Feb 2009 Link to this post

    Hello Yana,

    I opened a support Ticket to send you a sample project.

    Regards Markus
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017