Check out this code snippet with a problem
In the image below, you can see that the background of the li
element with more text is larger compared to the others. It's important to note that the <ul>
is scrollable. I've experimented with various CSS properties, but haven't been able to resolve the issue.
Note: Applying a background to the entire <ul>
is unnecessary. The goal is to apply backgrounds to each individual li
item instead.