how to set a:hover
color
#7140
-
Hello, in my a:hover {
background-color: #dfe7f5;
color: hotpink;
} It's very strange that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @copdips, |
Beta Was this translation helpful? Give feedback.
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.