CSS Dropdown Menu on iPad -


I have a CSS drop-down menu which works perfectly on mouse hover, but it is only partially Works on iPad & amp; IPhone - Phone Tapping on the drop down works for the first time, but fails to tap on the tap until the home link is taped, which reset the menu. I feel awkward but maybe someone will accept this behavior. Menu

  & lt; Div id = "menu" & gt; Can be seen on. & Lt; Ul & gt; & Lt; Li & gt; & Lt; One class = "link" href = "http://raleighfutbol4all.com" & gt; Home & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "sm_parent" onClick = "return true" & gt; Program & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; One class = "link" href = "/ program.php" & gt; Methods & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "link" href = "/ schedule.php" & gt; Schedule & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "link" href = "locations.php" & gt; Location & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "link" href = "reading.php" & gt; Reading & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; A class = "link" class = "titlebar" href = "contact.php" & gt; Contact & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One square = "sm_parent" onClick = "return true" & gt; About & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; One class = "link" href = "/ about.php" & gt; Coach & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "link" href = "/ mission.php" & gt; Mission Statement & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "link" href = "/ testimonials.php" & gt; Testimonials & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; One class = "link" href = "/ gallery.php" & gt; Gallery & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt ;! - Menu - & gt;   

CSS:

  # menu {display: block; Status: Completed; White-space: nowrap; Z-index: 3; } # Menu a.link:hover {color: #ffffff; Border: 1 px solid # FFE135; Range radius: 6px; Margin: 0 px; / * 1px is required to offset the limit * / = # menu a.sm_parent: hover / * sm_parent = submenu parent, there is no link * / {cursor: default; } # Menu & gt; UL / * Top Level UL Only * / {Padding-Left: 15px; Padding-right: 15px; Margin: 0; } # Menu / ul * * of all ul * / {display: inline-table; Status: Relative; List style: none; Z-index: 3; } # Menu ul li {float: left; Align text: left; } # Menu ULL a {display: block; Padding: 4px 20px; Color: # FFE135; Text-decoration: None; Margins: 1px; / * Hover will replace this with a 1px limit, the transfer stops * / z-index: 3; } # Menu ULL: link {color: # FFE135; } #menu ul li a: visited {color: # FFE135; } #Menu ULL: Active {color: # FFE135;} #MenuUl: Hover> Ul {visibility: visible; Opacity: 1.0; } #MenuUlLUlVision: hidden; Opacity: 0.0; -Widk-Infection: All 0.4 S-in-Out 0.0S; -Mozy-infection: all 0.4 S-in-out 0.0S; -MMS transition: all 0.4 s easily 0.0s; -O-Infection: All 0.4 S-in-Out 0.0S; Transition: All 0.4 s easily 0.0s; } # Menu ul ul {display: block; Background: black; Boundary-radius: 8px; Padding: 2px 8px; Status: Completed; Z-index: 3; / * Top: works with 100% chrome, etc., but not with IE, (of course), but with margin and or border values, margin & amp; Limit values ​​between top menu (UL) and submenu (UL) will require more% value reduction * / top: 88%; } # MenuUl ul li {display: block; Status: Relative; Float: None; } # Menu ul ul & gt; Li (/) submenu with a little font * / font-size: 90%; } # Menu ul ul li {padding: 4px 10px; } # Menu UL UL UL / / second generation submenu open to claim of 1 generation dropdown submenus * / status: absolute; Left: 100%; Top: 0; } # Menu ul ul ul & gt; Lea stops the second generation & gt; Patterns of the subcontinent are ever decreasing * / font-size: 100%; }   

At first I saw that the website is not responsive. Most time drop down is not good for mobile devices like iPod, iPad and Android mobile but if you can create a responsive website with the menu you can get a very good touch-friendly user experience.

Example Mobile Navigation Here:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -