Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create nav bar #6

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions nav bar
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>

*{
margin: 0;
padding: 0;
font-family: 'poppins', sans-serif;
box-sizing: border-box;
}

body{
background-color: lightgrey;
}

nav{
display: flex;
align-items: center;
justify-content: space-between;
background: #1876f2;
padding: 5px 5%;
position: sticky;
z-index: 100;
top: 0;
}

.logo{
width: 160px;
margin-right: 45px;
}
.nav-left{
display: flex;
align-items: center;

}

.nav-left ul li{
list-style: none;
display: inline-block;
}

.nav-left ul li img{
width: 28px;
margin: 0 15px;
}

/*yaha se ab hum nav bar mai right side ka bana rahe hai */

.nav-right{
display: flex;
align-items: center;

}

.nav-user-icon{
margin-left:30px ;
}

.nav-user-icon img{
width: 40px;
border-radius: 50%;
cursor:pointer;

}

.search-box{
background: #efefef ;
width: 350px;
border-radius: 20px;
display: flex;
align-items: center;
padding: 0 15px;
}

.search-box img{
width: 18px;

}

.search-box input{
width: 100%;
background: transparent;
padding: 10px;
outline: none;
border: 0;
}

</style>
</head>
<body>
<nav>
<div class="nav-left">
<img src="images/logo.png" class="logo">
<ul>
<li><img src="images/notification.png" alt=""></li>
<li><img src="images/inbox.png" alt=""></li>
<li><img src="images/video.png" alt=""></li>
</ul>
</div>

<div class="nav-right">
<div class="search-box">
<img src="images/search.png" >
<input type="text" placeholder="search">
</div>
<div class="nav-user-icon online">
<img src="images/profile-pic.png" alt="">
</div>
</div>
</nav>
</body>
</html>