<ul>
    <li class="active">
        <a href="#">Anasayfa</a>
    </li>
    <li class="dropdown">
        <a href="javascript:void(0)" class="dropbtn">Kategoriler</a>
        <div class="dropdown-content">
            <a href="#">Asp.net MVC</a>
            <a href="#">jquery</a>
            <a href="#">Css</a>
            <a href="#">Html</a>
            <a href="#">Javascript</a>
            <a href="#">Bootstrap</a>
            <a href="#">C#</a>
        </div>
    </li>
    <li>
        <a href="#">Hakkımda</a>
    </li>
</ul>
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #4fb99f;
}

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

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

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

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #4fb99f;
    min-width: 130px;
    z-index: 1;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #f2b134;
}

.dropdown:hover .dropdown-content {
    display: block;
    margin-top: 3px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.