I am currently facing an issue with a dropdown menu I am trying to create using just CSS. When I hover over the hamburger symbol, there seems to be a gap between the symbol and the menu item. How can I eliminate this gap by implementing professional-level code using only CSS? I want to achieve this without resorting to Flexbox or Grid.
Can you help me troubleshoot and solve this problem?
Here is the snippet of my current code:
/* ############################## START GLOBAL SETTINGS ############################## */
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
margin: 0;
font-family: 'Raleway', 'Lato', 'Helvetica Neue', 'Arial', sans-serif;
font-size: 62.5%;
}
ul {
margin: 0;
padding: 0;
}
/* ############################## END GLOBAL SETTINGS ############################## */
/* ############################## START GENERAL SETTINGS ############################## */
.clearfix::after {
content: "";
clear: both;
display: block;
}
... (rest of CSS code) ...
</nav>