<ul>
    <li class="active">
        <a href="#">Anasayfa</a>
    </li>
    <li>
        <a href="#">Hakkımda</a>
    </li>
    <li>
        <a href="#">İletişim</a>
    </li>
    <li class="menu-right">
        <a href="#">Kayıt Ol</a>
    </li>
    <li class="menu-right">
        <a href="#">Giriş</a>
    </li>
</ul>
ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    background-color: #4fb99f;
    overflow:auto;
}

ul li {
    float:left;
    border-bottom:3px solid #4fb99f;
}

ul li.menu-right{
    float:right;
}

ul li a {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

ul li.active {
    background-color: #068587;
    border-bottom:3px solid #f2b134;
}

ul li:hover:not(.active) {
    background-color: #068587;
    border-bottom:3px solid #f2b134;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.