horizontal scrollbar for displaying submenu of custom menu

horizontal scrollbar for displaying submenu of custom menu

kashyap pandey - මගින්
Number of replies: 3

hello,

I want to know how to create horizontal scrollbar for displaying submenu of custom menu below custom menu bar.

In this bar i want to scroll each and every submenu horizontally!!

 

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to kashyap pandey

Re: horizontal scrollbar for displaying submenu of custom menu

lior gil - මගින්
Core developers ගේ පින්තුරය

Use CSS.

#my_submenu {

overflow-x: scroll;

}

 

Keep in mind this will display the scrollbar even when there is no need for it.

Another option, also in CSS, is to set a minimum width to the submenu element and set "overflow-x: auto;" along with a fixed/minimal width to its parent container.

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to lior gil

Re: horizontal scrollbar for displaying submenu of custom menu

kashyap pandey - මගින්

thanks for this!but another problem is that when submenus are more than the width limit then vertical scroll bar is arised.but i want to scroll horizontally means i want to put button on the scroll bar so that when i click on that than scroll horizontally and hidden menus are displayed.

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -