How to use 'hover' in CSS - Stack Overflow
Not an answer, but explanation of why your css is not matching HTML. In css space is used as a separator to tell browser to look in children, so your css a .hover :hover{ text-decoration:underline; } means "look for a element, then look for any descendant...