Does this mean that I just need to make this change to the mega menu links to make them touch friendly? If so, that would be really great!
Thanks,
Anne
Printable View
Okay.. playing the devil's advocate here, I have some questions.. Are media queries going to REALLY be enough??? Why not include javascript to detect when the device is a touch screen device versus a desktop device?? How does this code distinguish between my 10" tablet and my 10" netbook?? Which device will use an onClick action and which one will use an onHover action?? How does this code know when I am viewing from my HP - ENVY TouchSmart 23" Touch-Screen All-In-One computer versus my HP desktop computer with a 23" monitor??
I agree.. There's no way to test for ALL devices.. I personally don't own a iPhone or a iPad.. So while I could have my client's who own these devices test things for me, or I could enlist friends and family who own these devices to help me test, this isn't really a realistic or reliable means to test..
What about a device independent testing tool like the Responsive Design Mode tool that comes as a part of the Web Development tools built in to the latest versions of Firefox. The Responsive Design Mode tool will allow you to test what your site looks like a certain resolutions.. Couple that with the Web Developer tools other features which will allow you to tweak your stylesheet live and see what those changes yield before you add them to your stylesheet. The tool covers the most common device resolutions, and allows you to enter in custom resolutions if the resolution of the device you are testing isn't included.
Then there's a whole slew of site's with webbased responsive testing tools popping up:
http://beta.screenqueri.es/
Brief Description: Pixel Perfect Media Query Debugging Tool* Test Responsive Designs Across 60+ Device Viewports. Also allows you to enter custom resolutions
if the resolution of the device you are testing isn't included.
This one rivals the functionality of the FireFox Responsive Design Mode tool.
http://mattkersley.com/responsive/
Brief Description: This tool has been built to help with testing your responsive websites while you design and build them. You can enter your website's URL into the address bar at the top of this page (not your browser's address bar) to test a specific page.
http://www.studiopress.com/responsive/
Brief Description: This tool has been built to help with testing your responsive websites while you design and build them. You can enter your website's URL into the address bar at the top of this page (not your browser's address bar) to test a specific page.
I wanted to add to this that on my tablet (Samsung Galaxy Tab 2), the mega menu displays the full menu in landscape, and a "partial" mega menu in portrait. This is just fine except for the onHover vs onClick "issue".. On my LG Optimus Pro smartphone, the mobile menu displays in both portrait and landscape.. The Samsung Galaxy Tab 2 tablet isn't what I'd consider a terribly LARGE tablet at all.. In fact it's the size of my 10" netbook. (which also displays the mega menu at full size)
At this point may I suggest we move this discussion to a new thread.. I think it's an interesting enough discussion to open up to the community, and we are CLEARLY (yes myself included) hijacking this support thread..
I will start it off and post the link..
New thread to continue the discussion:
Responsive Design: How to address differences between touchscreen and desktop devices
It will not make them touch friendly but will include a onClick event handler so if one is using a touch screen the mega menu can be clicked.
Here is an Example using this template:
Notice, your mega menu CSS file goes untouched, the onHover CSS still applies only after the onClick event and continues to use the onClick event handlers as fall back on any device.