I have a nice workable methode to have "hover"-menus work on a touchdevice.
Like this
CSS
Code: Select all
#nav ul li ul {
background-color:#aaF;
color: #000;
display: none;
height: auto;
margin: 0;
padding: 0.5em;
}
#nav ul li:hover ul
{position:absolute;
display: block;}
#nav ul li:focus ul
{position:absolute;
display: block;}
#nav ul li:active ul
{position:absolute;
display: block;}
Code: Select all
<div id="nav">
<ul>
<li><a href="1index.html" target="_self">Styl 1</a></li>
<li><a href=#>Styl 2 + 4 - 6</a><ul>
<li><a href="2index.html" target="_self">Styl 2</a></li>
<li><a href="4index.html" target="_self">Styl 4</a></li>
<li><a href="5index.html" target="_self">Styl 5</a></li>
<li><a href="6index.html" target="_self">Styl 6</a></li>
</ul>
</li>
<li><a href="3index.html" target="_self">Styl 3</a></li>
</ul>
</div>
If someone has a solution I would be gratefull.
BTW for IOS you can only "hover" when it concerns a link, no link, no hover.
Kind regards,
Jan