Skip to content

Instantly share code, notes, and snippets.

@PetraMotz
Last active August 4, 2021 11:11
Show Gist options
  • Save PetraMotz/862a61db7aa9ecde37b49bed8a116718 to your computer and use it in GitHub Desktop.
Save PetraMotz/862a61db7aa9ecde37b49bed8a116718 to your computer and use it in GitHub Desktop.
SCSS Hover Bold Ohne Springen #hover #scss
Hover Bold FIX:
a {
display:inline-block;
text-align:center;
}
a:hover {
font-weight:bold;
}
a::after {
display:block;
content:attr(title);
font-weight:bold;
height:1px;
color:transparent;
overflow:hidden;
visibility:hidden;
margin-bottom:-1px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment