- Ruthsarian :
- Layouts :
- Labs :
- Blog :
- Contact :
August 15, 2007
rMenu Update - IE7
Another update to Ruthsarian Menus. A hack was added a few weeks back to help IE7 which was not triggering mouseover if the cursor entered a menu item in an area not occupied by text. The hack was to trigger hasLayout, but that created a new bug where menu items that had sub-menus would display a small gap below the parent LI of the sub-menu when it had focus. The fix for that was to float all the LI elements in a vertical menu. At the time I didn't have a way to target IE7 specifically. Now I do, so I've updated this hack to target only IE7.
The hack? A take on the star-html hack (* html {}) that I first read about here. The hack takes the form of *:first-child+html {}. IE7 will apply any rules using this selector, but FireFox and other browsers will not. So use this just like you normally would the star-html hack (*:first-child+html ul.rMenu li{}. Also updated the Skidoo Redux download with the updated rmenu.css. Cool? Beans.
Post a comment