This is a migrated thread and some comments may be shown as answers.

How to keep the top menu items in single line?

1 Answer 173 Views
Menu
This is a migrated thread and some comments may be shown as answers.
che
Top achievements
Rank 1
che asked on 28 Aug 2017, 04:20 PM
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!

1 Answer, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 30 Aug 2017, 10:45 AM
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.
Tags
Menu
Asked by
che
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Share this question
or