title: How to use text-transform:uppercase without move the rest of the sentence with :hover
body: <p>I want to know how, only with html and css, i can transform some words (that are links) to uppercase without move all the sentence behind. Here are the example of how this like, in the footer section: <a href="https://codepen.io/JuanPastenCastillo/pen/RwGrPRa" rel="nofollow noreferrer">https://codepen.io/JuanPastenCastillo/pen/RwGrPRa</a></p>
  <p>And, here is the html and css:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>footer {
    display: flex;
    flex-direction: column;
    max-width: 680px;
    width: 100%;
    margin: 0.8rem auto 0 auto;
    font-family: monospace;
    font-size: 0.6rem;
    line-height: 0.9rem;
    color: rgba(250, 250, 250, 0.8);
  }
  
  footer p {
    align-self: flex-end;
    text-align: right;
    margin: 0.2rem 0 0 0;
  }
  
  footer p a {
    color: rgb(26, 26, 156);
    font-weight: 900;
  }
  
  footer p a:hover {
    text-transform: uppercase;
  }
  
  footer p a:focus {
    color: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;footer&gt;
    &lt;p&gt;Created by JuanPasténCastilo.
  
    &lt;/p&gt;
    &lt;p&gt;Social media &lt;a href="https://twitter.com/JuanPastn2" target="_blank"&gt;Twitter&lt;/a&gt; or &lt;a href="https://www.linkedin.com/in/juan-past%C3%A9n-castillo-078b5817a/" target="_blank"&gt;Linkedin&lt;/a&gt;. My work on &lt;a href="https://github.com/JuanPastenCastillo"
        target="_blank"&gt;Github&lt;/a&gt;&lt;/p&gt;
  &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>There is a way to do it but the result is a disordered sentence. The code is the following:</p>
  <pre class="lang-css prettyprint-override"><code>footer a{
       display:inline-block;
       width:100px;
       text-align:center;
  }
  </code></pre>
  <p>Thanks for you time and attention.</p>
  <p><strong>(1° edit)</strong></p>
  <p>I share some capture to explain how its like the disorder sentence: every time the mouse is hover the link this get in uppercase (this is what i want), but at the same time the rest of the left part of the sentence move a little to the left to give space to the word in the link (because the uppercase letter are bigger).</p>
  <p>Here is a capture of the code when the mouse is hover, move the rest of the left sentence part
  <a href="https://i.stack.imgur.com/eCRsO.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eCRsO.gif" alt="Here is a capture of the code when the mouse is hover, move the rest of the left sentence part" /></a></p>
  <p>Here is a capture with the sentence fixed with the code, but doing that the sentence stay disorder
  <a href="https://i.stack.imgur.com/PpwkI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PpwkI.png" alt="Here is a capture with the sentence fixed with the code, but doing that the sentence stay disorder" /></a></p>