[html] Inline elements shifting when made bold on hover

_x000D_
_x000D_
ul {_x000D_
  list-style-marker: none;_x000D_
  padding: 0;_x000D_
}_x000D_
_x000D_
li {_x000D_
  display: inline-block;_x000D_
}_x000D_
_x000D_
li + li {_x000D_
  margin-left: 1em;_x000D_
}_x000D_
_x000D_
a {_x000D_
  display: block;_x000D_
  position: relative;_x000D_
  text-align: center;_x000D_
}_x000D_
_x000D_
a:before, a:after {_x000D_
  content: attr(aria-label);_x000D_
  text-decoration: inherit;_x000D_
}_x000D_
_x000D_
a:before {_x000D_
  font-weight: bold;_x000D_
  visibility: hidden;_x000D_
}_x000D_
_x000D_
a:after {_x000D_
  position: absolute;_x000D_
  left: 0;_x000D_
  top: 0;_x000D_
  right: 0;_x000D_
  bottom: 0;_x000D_
}_x000D_
_x000D_
a:hover:before {_x000D_
  visibility: visible;_x000D_
}_x000D_
_x000D_
a:hover:after {_x000D_
  display: none;_x000D_
}
_x000D_
<ul>_x000D_
  <li>_x000D_
    <a href="" aria-label="Long-long-long"></a>_x000D_
  </li><li>_x000D_
    <a href="" aria-label="or"></a>_x000D_
  </li><li>_x000D_
    <a href="" aria-label="Short"></a>_x000D_
  </li><li>_x000D_
    <a href="" aria-label="Links"></a>_x000D_
  </li><li>_x000D_
    <a href="" aria-label="Here"></a>_x000D_
  </li>_x000D_
</ul>
_x000D_
_x000D_
_x000D_

Examples related to html

Embed ruby within URL : Middleman Blog Please help me convert this script to a simple image slider Generating a list of pages (not posts) without the index file Why there is this "clear" class before footer? Is it possible to change the content HTML5 alert messages? Getting all files in directory with ajax DevTools failed to load SourceMap: Could not load content for chrome-extension How to set width of mat-table column in angular? How to open a link in new tab using angular? ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

Examples related to css

need to add a class to an element Using Lato fonts in my css (@font-face) Please help me convert this script to a simple image slider Why there is this "clear" class before footer? How to set width of mat-table column in angular? Center content vertically on Vuetify bootstrap 4 file input doesn't show the file name Bootstrap 4: responsive sidebar menu to top navbar Stylesheet not loaded because of MIME-type Force flex item to span full row width

Examples related to hover

Angular 2 Hover event How can I access a hover state in reactjs? CSS disable hover effect How to remove/ignore :hover css style on touch devices Spin or rotate an image on hover How to make in CSS an overlay over an image? How to display and hide a div with CSS? simple Jquery hover enlarge Changing image on hover with CSS/HTML CSS On hover show another element

Examples related to text-size

Text size of android design TabLayout tabs Different font size of strings in the same TextView Text size and different android screen sizes What is the default text size on Android? How to assign text size in sp value using java code Inline elements shifting when made bold on hover