My HTML structure is set up like this:
ul {
list-style: none;
padding: 0;
margin: 0;
}
li:hover {
border: 2px solid;
}
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
When the `:hover` event triggers, the position of the <li>
element changes. How can I keep it constant (fixed)?
Note: I am able to achieve this using `box-shadow`, but I prefer not to as most of my website's visitors use older browsers. Are there any alternative solutions available?