Skip to content

Instantly share code, notes, and snippets.

@sohelrana820
Last active February 9, 2024 18:53
Show Gist options
  • Save sohelrana820/f12c6268318958acbe2e3024e2c35c93 to your computer and use it in GitHub Desktop.
Save sohelrana820/f12c6268318958acbe2e3024e2c35c93 to your computer and use it in GitHub Desktop.
How to stop navbar items shaking on css hover
/**
* Put anchor (<a> tag) link text inside the title attribute text
**
.link::before {
display: block;
content: attr(title);
font-weight: 600;
height: 0;
overflow: hidden;
visibility: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment