title: Tailwind CSS Navigation Hover Dropdown with Padding
body: <p>I'm attempting to show the sub <code>&lt;ul&gt;</code> list on the first navigation item when the item is hovered:</p>
  
  <p><a href="https://i.stack.imgur.com/KNqcx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KNqcx.png" alt="enter image description here"></a></p>
  
  <p>Everything is working except for sometimes (it's hit and miss) when you are in between the padding of the first line <code>&lt;ul&gt;</code> item and the sub <code>&lt;ul&gt;</code> item, the secondary <code>&lt;ul&gt;</code> will disappear:</p>
  
  <p><a href="https://i.stack.imgur.com/DhXPT.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DhXPT.gif" alt="enter image description here"></a></p>
  
  <p>How can I keep the secondary navigation list open when I'm navigating from the dropdown to the item list?</p>
  
  <p><a href="https://jsfiddle.net/neakspuL/" rel="nofollow noreferrer">JSFiddle</a></p>
  
  <pre><code>&lt;ul class="w-full"&gt;
      &lt;li class="dropdown inline px-4 text-purple-500 hover:text-purple-700 cursor-pointer font-bold text-base uppercase tracking-wide"&gt;
          &lt;a&gt;Dropdown&lt;/a&gt;
          &lt;div class="dropdown-menu absolute hidden h-auto flex pt-4"&gt;
              &lt;ul class="block w-full bg-white shadow px-12 py-8"&gt;
                  &lt;li class="py-1"&gt;&lt;a class="block text-purple-500 font-bold text-base uppercase hover:text-purple-700 cursor-pointer"&gt;Item&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="py-1"&gt;&lt;a class="block text-purple-500 font-bold text-base uppercase hover:text-purple-700 cursor-pointer"&gt;Item 2&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="py-1"&gt;&lt;a class="block text-purple-500 font-bold text-base uppercase hover:text-purple-700 cursor-pointer"&gt;Item 3&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="py-1"&gt;&lt;a class="block text-purple-500 font-bold text-base uppercase hover:text-purple-700 cursor-pointer"&gt;Item 4&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="py-1"&gt;&lt;a class="block text-purple-500 font-bold text-base uppercase hover:text-purple-700 cursor-pointer"&gt;Item 5&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/li&gt;
      &lt;li class="inline px-4 text-purple-500 hover:text-purple-700 cursor-pointer font-bold text-base uppercase tracking-wide"&gt;&lt;a&gt;Non-Dropdown&lt;/a&gt;&lt;/li&gt;
      &lt;li class="inline px-4 text-purple-500 hover:text-purple-700 cursor-pointer font-bold text-base uppercase tracking-wide"&gt;&lt;a&gt;Non-Dropdown&lt;/a&gt;&lt;/li&gt;
      &lt;li class="inline px-4 text-purple-500 hover:text-purple-700 cursor-pointer font-bold text-base uppercase tracking-wide lg:pr-8"&gt;&lt;a&gt;Non-Dropdown&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <pre><code>.dropdown:hover .dropdown-menu {
    display: block;
  }
  </code></pre>