Skip to main content

Simple Navbar With Flexbox in HTML, CSS| Create a Navigation Bar with Flexbox [Free Source Code] No Talking





HTML

<!DOCTYPE html>
<html>
    <head>


        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>Music App</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="css.css">


    </head>

    <body>


        <div class="header1">

          <div class="head2">              
             <h1>SkyCodingLab</h1>

            </div>
            <div class="head3">

                <ul>
                    <li><a href="#">Home</a></li>
                    <li><a href="#">About Us</a></li>
                    <li><a href="#">Our Service</a></li>
                    <li><a href="#">New's</a></li>
                   <button><li><a href="#">Contact Us</a></li>  </button>      
       
                </ul>
            </div>
        </div>
   
    <section>
       
    </section>


    </body>
</html>


CSS 

body{
    padding: 0px;
    margin: 0px;

}

.header1{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 5px 80px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.515);
    border:1px dotted #fff;


}



.head2{

    height: 100px;
    width: 50%;
    float: left;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: medium;
    text-shadow: 4px;
    text-indent: 100px;
    color: white;
       
}


.head3{

    float: right;
    width: 50%;
    height: 100px;
   
}

.head3 ul{

    list-style: none;

}

.head3 ul li{
    display: inline-flex;  
    padding: 10px 20px;

}

.head3 ul li a{
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    font-size: 15px;
    text-transform: uppercase;



}

.head3 ul li a:hover{
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #C37C8D;
    font-size: 15px;
    text-transform: uppercase;
}



section{
    width: 100%;
    height: 100vh;
    background: url(img/img2.jpg);
    background-size: cover;
    background-position: center;

}
button{
    background: #C37C8D;
    border-radius: 25px;
}

button:hover{
    background: greenyellow;
    border-radius: 25px;
    color: white;
}

Comments

Popular posts from this blog

Simple Responsive Side Navigation Bar in HTML CSS And JavaScript | Dashboard Sidebar Menu [Free Source Code]

  HTML CODE =============== <! DOCTYPE html >   < head >     < html lang = "en" dir = "ltr" ></ html >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < link rel = "stylesheet" href = "style.css" >     < link href = 'https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel = 'stylesheet' >   </ head > < body >   < div class = "sidebar_menu" >         < div class = "Logo" >         < i class = 'bx bxl-slack icon' ></ i >           < div class = "Text_Logo" >SkyCodingLab</ div >           < i class = 'bx bx-menu' id = "Button" ></ i >         </ div >       < ul class = "Nav_Item" >           < li >               < i class =

Responsive Navigation Bar using HTML And CSS

  HTML <! DOCTYPE html >   < head >     < meta charset = "utf-8" >     < title >Responsive Navigation | SkyCodingLab</ title >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />     < link rel = "stylesheet" href = "style.css" >   </ head >   < body >     < nav >         < input type = "checkbox" id = "check" >         < label for = "check" class = "checkbtn" >         < i class = "fas fa-bars" ></ i >         </ label >         < label class = "logo" >SkyCodingLab</ label >         < ul >         < li >< a class = "active" href = "#" >Home</ a ><