JSFiddle - React, Tailwind, and code Playground
HTML
<nav>
<div class="hello"></div>
<ul>
<li class="icon-home"><a href="Premiership.html"><span>Home</span></a></li>
<li class="arrow"> <a class="star" href="#">England</a>
<ul>
<li><a href="Premiership.html">Premiership</a>
</li>
<li><a href= "Unavailble.html">Championship</a>
</li>
<li><a href="Unavailble.html">League 1</a>
</li>
<li><a href="Unavailble.html">League 2</a>
</li>
</ul>
</li>
<li class="arrow"> <a href="#">France</a>
<ul >
<li id="r"><a href="Unavailble.html">Ligue 1</a>
</li>
</ul>
</li>
<li class="arrow"> <a href="#">Germany </a>
<ul>
<li><a href="Unavailble.html">Bundesliga</a>
</li>
</ul>
</li>
<li class="arrow"> <a href="#">Italy</a>
<ul>
<li><a href="Unavailble.html">Serie A</a>
</li>
</ul>
</li>
</ul>
</nav>
CSS
nav ul{
background-color: #43a286;
overflow: hidden;
color:white;
padding: 0;
text-align: center;
margin: 0;
-webkit-transition: max-height 0.4s;
-ms-transition: max-height 0.4s;
-moz-transition: max-height 0.4s;
-o-transition: max-height 0.4s;
transition: max-height 0.4s;
}
nav ul li{
display: inline-block;
padding: 20px;
width: 12.3%;
text-align: center;
}
nav ul li:hover {
background-color: #399077;
}
li .star:after {
content: '';
display: none;
width: 0;
height: 0;
border-top: 6px solid #333;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
position: absolute;
z-index: 1;
top: 100%;
left: 50%;
margin-left: -6px
}
nav ul .arrow:hover{
/*border-bottom: 5px solid black; */
}
nav ul ul{
display: none;
position:absolute;
background-color: #399077;
margin-left: -3%;
z-index:150;
}
nav ul ul li{
display: block;
width:75%;
text-align: center;
}
nav ul li:hover ul{
margin-top: 2%;
display: block;
border-bottom-left-radius: 5%;
border-bottom-right-radius: 5%;
width: 165px;
}
nav ul li a, visited{
color:white;
font-family: 'CFJackStory-Regular', Helvetica, Arial, sans-serif;
display: block;
text-decoration: none;
}
nav ul ul li a:hover{
color:white;
font-size: 20px;
}