random1 Posted June 24, 2009 Share Posted June 24, 2009 I read that using 'a:hover' is bad practice in CSS and that it is recommended that you use a snippet of Javascript to achieve the hover affect. The reason that they gave is that the ':hover' part causes the DOM to load slowly. Is this right? Any better version in CSS to have the same effect for a simple #navmenu element? Quote Link to comment Share on other sites More sharing options...
haku Posted June 24, 2009 Share Posted June 24, 2009 Whoever said that didn't really know what they were talking about: a) I've never noticed it to place that much of a load on the DOM b) Using javascript requires that the user has javascript turned on, and the javascript itself is more likely to be much heavier on your processing power than the :hover element. Quote Link to comment Share on other sites More sharing options...
random1 Posted June 25, 2009 Author Share Posted June 25, 2009 K thanks Thought it was a bit strange. Quote Link to comment Share on other sites More sharing options...
chmpdog Posted June 25, 2009 Share Posted June 25, 2009 check with w3.org to see what is valid coding Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.