How to keep the top menu items in single line?

2 posts, 0 answers
  1. che
    che avatar
    2 posts
    Member since:
    Jan 2015

    Posted 28 Aug 2017 Link to this post

    When the windows size is smaller. The top level menu items will auto wrap. The top menu items will display in mult-lines.
     
    I want all top menu item display in single line always. 
     
    Thank you!
  2. Magdalena
    Admin
    Magdalena avatar
    487 posts

    Posted 30 Aug 2017 Link to this post

    Hi Che,

    You can remove floating from menu items, and display them as inline-block instead. You can achive it by applying the following:
    .k-widget.k-menu-horizontal>.k-item {
      float: none;
      display: inline-block;
    }
    .k-menu-horizontal {
      white-space: nowrap;
    }

    We are sending you also this Dojo sample.

    Regards,
    Magdalena
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top