Header Navbar KG production

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>KG PRODUCTION</title>
    <link rel="stylesheet" href="KG production.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
</head>
<body>
    <header>
        <img  class="logo" src="kg-low-resolution-color-logo.png" alt="LOGO">
        <nav>
            <ul class="nav-links">
                <li><a href="#">Home</a></li>
                <li><a href="#">Info</a></li>
                <li><a href="#">Join</a></li>
                <li><a href="#">About</a></li>
            </ul>

        </nav>
        <a class="cta" href="#"><button>Contact us</button></a>
    </header>
</body>
</html>

CSS Source Code



*{
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}
nav li a{
    font-family: "Montserrat" , sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #edf0f1;
    text-decoration: none;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30xp 10%;
    background-color: #0a3268;
   
}
.logo{
    height: 100px;
    width: 130px;
    cursor: pointer;
}
.nav-links{
    list-style: none;
}
.nav-links li{
    display: inline-block;
    padding: 0px 20px;
}
.nav-links li a{
    transition: all 0.3s ease 0s;
}
.nav-links li a:hover{
    color: #0088a9;
}
button{
    padding: 9px 35px;
    background-color: rgb(235, 176, 67);
    border: none;
    border-radius: 50px;
    cursor: pointer ;
    transition: all 0.3s ease 0s;
    margin-right: 20px;
    font-family: "Montserrat", sans-serif;
}
button:hover{
    background-color: rgba(0,136,169,0.8);
}


Comments

Popular posts from this blog