- This topic is empty.
January 29, 2015 at 4:58 am #194588
starting from a menu of this type
< div > <a href="">Link 1</a> <a href="">Link 2</a> < / div >
how can I turn the div in a colored square that touch becomes a drop-down menu without UL AND LI?January 29, 2015 at 5:24 am #194592
What have you tried?
Try taking an existing dropdown menu and using divs and anchors instead of
I’m not sure what this has to do specifically regarding mobile.
Is there something you’re having trouble with at smaller viewports that you think this alternate structure will solve.
Oh, and I’m assuming by ‘dropdown menu’ you mean an actual menu and not a
EDIT: Also, why links for the parents?..they can’t be active links otherwise they’d take you away from the location.January 29, 2015 at 6:29 am #194594January 29, 2015 at 6:47 am #194595
What do you mean…”doesn’t work”.
What are you expecting to have happen?January 29, 2015 at 9:51 am #194620
disappears I can not click
how would you ? only with css ?January 29, 2015 at 10:00 am #194622
You mean it goes away when you hover off, well that’s understandable?
There are checkbox “hacks” but I’m not sure I’d recommend them.January 30, 2015 at 4:46 am #194673
1) I click , the menu appears but if I click on the link disappears.
2) I read your guide for the button three horizontal lines I tried this & # 9776 ;, appears a square, utf8 is not supported inthe small phone ?January 30, 2015 at 8:15 am #194699
If you have have click events enabled, then we need to see that code in the Codepen.
CSS won’t do that kind of interaction.January 30, 2015 at 8:56 am #194703
better use ul and li.January 30, 2015 at 9:17 am #194704
That still won’t give you ‘clicking’.January 30, 2015 at 7:13 pm #194739ShikkedielParticipant
Recently made this – seems on topic :
It has touch support – and the delayed hiding can easily be removed.
Recommended to use a normal hover (HTML5)
<noscript>fallback.February 2, 2015 at 5:58 pm #194936bikejunkieParticipant
I would check this out (though it uses ul li)
http://codepen.io/boxabrain/pen/sdzcfFebruary 2, 2015 at 6:03 pm #194937bikejunkieParticipant
your nav menu is REALLY amazingFebruary 3, 2015 at 12:43 am #194947
- The forum ‘CSS’ is closed to new topics and replies.