Relative Content

Tag Archive for tailwind-css

Dropdown menu with tailwind shows when hovering below actual nav item

The problem I am having is that if I hover below “Parent” the dropdown menu appears when it should only appear when I actually hover over “Parent”. So, basically, if I hover anywhere where the submenu would be visible. Also, “Parent” does not keep the background hover colour when moving the mouse to the submenu items.

Why are a few classes of tailwind working on one element while other are not?

I have just begun learning TailwindCSS and although it was working fine, some classes are not working on an element. Space-x-6 does not work in vscode+browser while everything worked just fine in talwindplay.Here is the image of me trying to apply space-x-6 to navlinks but they are not working as expected.