M
M
massef2017-01-20 23:44:42
css
massef, 2017-01-20 23:44:42

How to layout a multi-level mobile menu, where are the main links?

The menu is opened through hover, with such an implementation on a mobile device, when tapping on the main item, the link is followed. How to make such a menu?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan, 2017-01-21
@LiguidCool

On mobile, such a menu is duplicated on a regular one.

I
iBird Rose, 2017-01-21
@iiiBird

on mobile, remove the hover and do it on click. Tobish the first click opens the menu. the second click is already with the menu open - goes to the link

X
xmoonlight, 2017-01-21
@xmoonlight

1. https://knackforge.com/blog/karalmax/how-deal-hove...
2. stackoverflow.com/questions/2851663/how-do-i-simul...
Media-query list (as an addition) :

@media (pointer:coarse) {
    /* Primary Input is a coarse pointer device such as touchscreen or XBox Kinect etc */
}
 
@media (pointer:fine) {
    /* Primary Input is a fine pointer device such as a mouse or stylus */
}
 
@media (hover:none) {
    /* Primary Input doesn't respond to hover at all, even partially (ie: there is no pointing device) */
}
 
@media (hover:on-demand) {
    /* Primary Input responds to hover only via emulation, such as touch screen devices */
}
 
@media (hover:hover) {
    /* Primary Input responds to hover fully, such as a mouse or a Nintendo Wii controller */
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question