Centering menu items

5 posts, 1 answers
  1. Mark
    Mark avatar
    23 posts
    Member since:
    Sep 2014

    Posted 09 Oct 2014 Link to this post

    Hello, 

    I have a problem with my RadMenu, the text in the RadMenu Item is centered but the item itself isn't centered.

    Please take a look at the attached file for more info.

    I obviously tried putting CSS on the different classes in the skin but I havent been able to move that 'blue/green' block to the center. 

    Thanks !
  2. Answer
    Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 10 Oct 2014 Link to this post

    Hello Mark,

    We have noticed that you are applying some custom styles to the RadMenu. It seems that you are applying a fixed width to the rmLink elements. If this is your case, try to apply the following to center the text:
    html .RadMenu .rmRootLink {
        text-align: center;
    }
     
    html .RadMenu .rmHorizontal .rmText {
        float: none;
    }

    If this solution does not resolve the issue in your case, could you please provide us with all stylesheets that you are applying to the RadMenu, so we will be able to find an exact solution for your case.

    Regards,
    Magdalena
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark
    Mark avatar
    23 posts
    Member since:
    Sep 2014

    Posted 10 Oct 2014 in reply to Magdalena Link to this post

    Yes that actually worked ! Thanks alot for the help
  5. Mark
    Mark avatar
    23 posts
    Member since:
    Sep 2014

    Posted 10 Oct 2014 in reply to Magdalena Link to this post

    Yes that actually worked, thank you for the help
  6. Mark
    Mark avatar
    23 posts
    Member since:
    Sep 2014

    Posted 10 Oct 2014 in reply to Magdalena Link to this post

    thank you for the help, it worked !
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017