JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
        <title>Test Menu</title>
        <style>
ul{
        list-style: none;
}
li{
        width: 109px;
        height: 22px;
        background: red;
        float: left;
        padding-left: 32px;
        padding-top:10px;
        margin-right: -32px;
        position:relative;
        z-index: 0;
}
li:hover,li.active:hover{
        background: blue;
            position:relative;
        z-index: 20;
            height: 30px;
}
a{
        text-decoration:none;
        color:#333;
}
li.active{
        background:#000;



        position:relative;
        z-index: 10;
}

        </style>
    </head>
    <body>
        <ul>
            <li><a href="#">Главная</a></li>
            <li><a href="#">О нас</a></li>
            <li class="active"><a href="#">Контакты</a></li>


            <li><a href="#">Отзывы</a></li>
        </ul>
    </body>
</html>