How to make Navbar with Rounded Buttons with HTML and CSS

By | December 9, 2021

Navbar with Rounded Buttons using HTML and CSS

How to make Navbar with Rounded Buttons with HTML and CSS

HTML Code:

 <header>
<div class="main">
<div class="logo">
<img src="https://fireservices.xyz/f06a7baba68c498bbaadc031836e76a7/" alt="BRUTAL SQUAD">
</div>
<ul>
<li><a href="arkay.html">Home</a></li>
<li><a href="privacy.html">About</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="#DMCA">DMCA</a></li>
</ul>
</header>

CSS Code:

*{
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
header{
    height: 77px;
background-size: cover;
background-position: center;
background-color:rgba(61, 34, 158, 0.651);
}
header h2{
    color: white;
    padding-left: 50px;
    align-items: center;
    font-family: 'Ubuntu Mono', monospace;
   align-items: center;
   justify-content: center;
}
header p{
    margin: 40px;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu Mono', monospace;
    color: white;
}
ul{
    margin: 30px;
    list-style-type: none;
    float: right;
    
}
ul li{
    display: inline ;
}
ul li a{
    text-decoration: none;
    color: White;
    padding: 10px 15px;
    border: 1px solid white;
    transition: 0.6s ease;
    border-radius: 35px;
}
ul li a:hover{
    background-color: white;
    color: black;
}
ul li a:active{
    background-color: white;
    color: black;
}
.logo img{
    float: left;
    width: 150px;
    height: auto;
    margin: -36px;
}
.main{
    max-width: 1200px;
    margin: auto;
}