This is an example of my HTML structure:
<nav id="menu">
<ul>
<li><a href="">Products</a></li>
<li><a href="">Offers</a></li>
<li><a href="">References</a></li>
<li><a href="">Directions</a></li>
<li><a href="">About us</a></li>
<li><a href="">Jobs</a></li>
<li><a href="">Partners</a></li>
<li><a href="">Contact</a></li>
</ul>
</nav>
Here is the CSS styling for the menu:
#menu {
position:relative;
width:100%;
height:35px;
margin-bottom:10px;
background-image: url("../img/menuBackground.png");
background-repeat: no-repeat;
}
#menu ul {
display: block;
list-style-type: none;
position: relative;
top:5px;
margin-left:20px;
margin-right:20px;
}
#menu ul li {
display: block;
position: relative;
float: left;
margin-right: 16px;
}
There is a concern about the spacing around the text in the A elements overlapping the white stripe in the "menuBackground.png" image. The issue occurs with the Kontakt element, where the text overlaps the white stripe.
How can I ensure that there will be additional spacing added when an element overlaps the white stripe?
Thank you in advance for any suggestions or solutions to this problem.
Check out a JS FIDDLE EXAMPLE for reference...