I've been working on getting the color to fill the entire dropdown area based on the text you're hovering over, but it's only filling the space around the word.
I've set up a Fiddle to demonstrate the issue I'm facing. I'm new to CSS and HTML.
Despite trying to add padding, the div element is not fully filled when hovered.
The HTML code is provided both below and in the Fiddle
header {
display: flex;
justify-content: space-evenly;
align-items: center;
padding-top: 1.0rem;
}
.sub-1 {
display: none;
}
/* More CSS rules here */
<!-- Embedded HTML code within snippet -->
Link to Fiddle