title: How to get a hover effect to only show up over a link and not a containers whole width
body: <p>I am having an issue with the hover of my links. I have the parent, container element set to <code>32%</code> width, this is causing my hover for my links to create a pointer and/or to be selected when the user isn't over the link. I have tried to set the link (<code>#state-list-left a</code>, etc., etc.) to <code>width: auto</code> and this did not help. I have also tried to change the HTML and put it within a list item, like this:</p>
  
  <p><code>&lt;a href="Alabama-Spray-Foam-Insulation.php"&gt;&lt;li&gt;Alabama&lt;/li&gt;&lt;/a&gt;</code></p>
  
  <p>How can I get the link to only be clicked on over the words?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#state-list-left,
  #state-list-middle,
  #state-list-right {
    font-size: 1em;
    width: 32%;
    display: inline-block;
  }
  #state-list-left a,
  #state-list-middle a,
  #state-list-right a {
    font-size: 1em;
    padding: 5px 10px;
    display: block;
    color: #000;
    text-decoration: none;
  }
  #state-list-left a:hover,
  #state-list-middle a:hover,
  #state-list-right a:hover {
    color: #0C3;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="state-list-left"&gt;
    &lt;a href="Alabama-Spray-Foam-Insulation.php"&gt;Alabama&lt;/a&gt;
    &lt;a href="Alaska-Spray-Foam-Insulation.php"&gt;Alaska&lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/7kTan.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7kTan.png" alt="enter image description here"></a></p>