I'm currently in the process of creating my website using Wordpress. I wanted to include a custom horizontal menu using only CSS and HTML as I wasn't satisfied with existing plugins. Here is the HTML code I used:
<div id="provamenutop">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Home</a></li>
<li><a href="#">Home</a></li>
<li><a href="#">Home</a></li>
<li><a href="#">Home</a></li>
</ul>
</div>
As for my CSS, it looks like this:
#provamenutop {background-color:#333; width:90%; line-height:100%;}
#provamenutop li {position: relative; float:left; list-style: none; font-family:verdana;}
#provamenutop li a {display:inline-block; text-decoration:none; padding: 20px; color: white; background: #333; transition:.4s;}
#provamenutop li a:hover {background: #111;}
When I view it on my local computer, everything appears correctly: https://gyazo.com/d5b38f6cc1c7857dbe37945e2d8b5002
However, when I implement it on my website using a custom theme called Sportexx, the menu looks different: https://gyazo.com/5ccb7e944b627244a7d3ac8344471b28
I suspect that there may be some conflicting CSS within the theme causing this issue. How can I resolve this problem? (Additionally, there seems to be an unwanted clickable space between each "Home" button)
Thank you for taking the time to read this.