Mixaalser684 Posted December 4, 2007 Share Posted December 4, 2007 I have the following code in my CSS that applys on all pages: a.navlinkboja {color: #0033FF;}a:hover {color: #FF9900} Now as you see I didn't add to many effects, just link color and rollover effect, but what if I want to create more than one of these same settings, lets say I have two types of links on one of my pages that I want for them to have different color and rollover color, should I use the ID or CLASS properties, and how would the needed code look (I'm esspecially confused about that a:hover.. part? Thanx. Link to comment Share on other sites More sharing options...
Ingolme Posted December 4, 2007 Share Posted December 4, 2007 It's like this:a.classname:hover {/* something */}a#id:hover {/* something */} Link to comment Share on other sites More sharing options...
Mixaalser684 Posted December 4, 2007 Author Share Posted December 4, 2007 Thanx Ingolme Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.