Skip to content

how to set a:hover color #7140

Answered by kamilkrzyskow
copdips asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @copdips,
it's likely due to the Specificity.
You're using a global a:hover, but the CSS defined by the theme is more specific with .md-typeset a:hover, and does define a color with that, so it has higher priority. Your background color works, because the theme doesn't define a background color for anchors, so your broad select takes priority, because it's the only one.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@copdips
Comment options

Answer selected by copdips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants