I'd like to apply a style to a hyperlink on hover.
I'm trying this:
#myID a
text-decoration: none
color: #fff
&:hover
color: #0077a9
However, the last rule isn't being applied.
Your code is fine, here's a working demo: http://sassbin.com/gist/6129692/
There might be an issue with indentation though. Your example has three spaces of first-level indentation, while two spaces are correct.
If this does not solve your issue, please provide more information: error text, resulting CSS file, maybe an example shared via http://sassbin.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.