CCS 4 ... its new and banging at the door to enter the market. There is a few changes that were implemented to make coding a little easy. More like making it conditional :-s A simple coloring where we define each instance if the link will be coded as: ul.menu li a:link, ul.menu li a:hover, ul.menu li a:visited, ul.menu li a:focus { 5 color : red ; } With the new shorthand code it looks much cleaner and understandable. ul.menu li a:matches(:link, :hover, :visited, :focus) { color : red ; } Mote examples and a further reading can be found at http://coding.smashingmagazine.com/2013/01/21/sneak-peek-future-selectors-level-4/ Happy reading!
Comments