When using a CSS dropdown list that opens on hover, there may be compatibility issues with iOS devices like iPads or iPhones. Here is a rough jFiddle showcasing the problem:
The dropdown works perfectly on Android devices with Chrome, where clicking the main menu item displays the dropdown list. However, on iOS devices, this functionality does not work. Is there a way to modify it so that on mobile devices, the dropdown will appear when the main menu is clicked since hover is not supported?
HTML
<header>
<nav role="navigation" class="clearfix">
<ul id="nav-site">
<li>
<span class="arrow">Shop</span>
<div class="dropdown_1column">
<div class="mainbox clearfix">
<ul>
<li class="main-category"><a href="new-products/">New Arrivals</a></li>
<li class="main-category"><a href="gifts-under-100/">Gifts Under $100</a></li>
<li class="main-category"><a href="staff-favorites/">Staff Favorites</a></li>
<li class="main-category"><a href="made-in-the-usa/">Made in the USA</a></li>
</ul>
</div>
</div>
</li>
</ul>
</nav>