How can I achieve a layout similar to the one shown in this image: ul menu li tags
Should I use two tags for each element? Here is an example:
<ul class="menu">
<div class="outside"><li class="inside"><a href="#">Firefox</a></li></div>
<div class="outside"><li class="inside"><a href="#">Chrome</a></li></div>
<div class="outside"><li class="inside"><a href="#">Opera</a></li></div>
</ul>
Alternatively, should I use double li tags instead? I have experimented with the linear-gradient property in CSS, but using just one tag. To achieve the desired result seen in the image, it appears that two separate tags with different background colors are required, with the black-colored one having a higher z-index.
Being relatively new and inexperienced in design and styling, I truly appreciate any help or guidance you can offer. Thank you in advance!