Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mobile Devices Drop Down On Hover

Featured Replies

Basically, at the moment, I have a CSS drop down menu on hover and it doesn't seem to be working on ipad and iphone users, I understand that they don't have a 'hover' but a click would work just as good, anyone have an idea on how to get this to work?

  • Author

Investigate coding with media queries as a drop down menu should be expanded as a vertical list in small screen devices.

http://kyleschaeffer.com/best-practices/responsive-layouts-using-css-media-queries/

 

It is a vertical list though? unless I am missing something :mellow: why wouldn't a standard ul, li list work normally on ipad on a click?

Edited by OwenONeill

Media queries seem to get rid of all widths and convert everything, even table cells, from horizontal to vertical so that users of small screen devices only have to scroll vertically. That's what happens to one of my sites, anyway.

 

It doesn't change if you just reduce a window to a small width on a PC, but Opera has a View/Fit to Width which simulates a small screen device so you can see the difference.

Edited by Wickham

  • 2 months later...

.... they don't have a 'hover' but a click would work just as good, anyone have an idea on how to get this to work?

 

Only if it's coded to use the active click state. Really, it would be preferable to test for and then use a touch event to trigger the dropdown.

 

Short answer, dropdowns are very hard to get right on very small screens. Strongly question whether they are *really* required.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.