I would suggest looking into [pseudo](http://www.w3schools.com/css/css_pseudo_classes.asp) classes for this.