Responsive and attractive navbar design with html and css only || Responsive Navbar with source code
In this article, I am going to tell you how you can create a very beautiful Navbar in HTML and CSS with simple steps. you just need to write a simple code of text to create this HTML Navbar in HTML and CSS. We will use in this code HTML and simple internal CSS.
first of all, you have to create a folder, where you want to create a save file of code and then drag it or open it on your text editor, after that, you have to save this file by giving any name with the extension name .html.
after saved this file, you just write a simple structure of HTML and create content and follow the code which is given below.
Queries Solved:-
responsive navbar,responsive navbar html css,responsive menu,navbar,responsive menu bar,responsive navigation menu,responsive navbar tutorial,react navbar responsive,responsive navigation bar,responsive navigation,responsive,responsive navigation bar with html and css,responsive navigation bar tutorial,navbar css,css responsive navbar,responsive navbar flexbox,responsive navbar in html css,responsive navbar bootstrap 4.
website template,website templates,website,website design,create a website,how to make a website,how to create a website,html website,website tutorial,website design template,html website templates,best website templates,how to build a website,template,personal website templates,website design templates,templates,portfolio website templates,wordpress website templates,build a website,responsive website templates,download free website templates.
html website,html,css,html and css,how to create a website using html and css,how to make a website using html and css,website using html and css,website template design using html and css,build a website with html and css,html template,html website template,website design,simple website using html and css,website,how to create website,how to create website using html and css,make websites with html templates,free html templates.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Responsive Navbar in HTML and CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style type="text/css">
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
list-style: none;
font-family: arial;
transition: 0.5s;
}
nav
{
background-color: #face30;
height: 80px;
width: 100%;
}
.logo
{
font-size: 35px;
line-height: 80px;
padding: 0px 100px;
font-weight: bold;
color: #000;
display: inline;
}
nav ul
{
float: right;
margin-right: 20px;
}
nav ul li
{
display: inline-block;
margin-top: 25px;
transition: 0.5s;
font-size: 16px;
border-radius: 3px;
padding: 7px 13px;
font-weight: bold;
cursor: pointer;
}
.checkbtn
{
font-size: 30px;
color: #fff;
float: right;
margin-right: 40px;
line-height: 100px;
cursor: pointer;
display: none;
}
#check
{
display: none;
}
@media (max-width: 1009px)
{
.logo
{
font-size: 30px;
padding-left: 50px;
}
nav ul li
{
font-size: 16px;
}
}
@media (max-width: 921px)
{
.checkbtn
{
display: block;
color: #000;
}
ul
{
position: fixed;
width: 100%;
height: 100vh;
background-color: #111;
top: 80px;
left: -100%;
text-align: center;
}
nav ul li
{
display: block;
font-size: 17px;
margin: 25px 0px;
color: #fff;
}
#check:checked ~ul
{
left: 0;
}
}
section
{
width: 100%;
height: 900px;
background: linear-gradient(to left, rgba(0,0,0,0.6)50%, rgba(0,0,0,0.6)50%), url(https://images.pexels.com/photos/1841841/pexels-photo-1841841.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
background-repeat: no-repeat;
background-size: cover;
text-align: center;
padding-top: 100px;
color: #fff;
}
section h1
{
font-size: 80px;
padding-top: 25px;
}
section span
{
color: #face30;
}
section p
{
padding: 50px 20px;
line-height: 25px;
font-family: arial;
font-weight: bold;
font-size: 16px;
letter-spacing: 1px;
}
button
{
width: 140px;
height: 45px;
background-color: #face30;
border: none;
border-radius: 10px;
cursor: pointer;
font-weight: bold;
font-size: 15px;
transition: 0.5s;
}
button:hover
{
background-color: #fff;
}
@media (max-width: 921px)
{
section h1
{
font-size: 50px;
}
}
</style>
<body>
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<ion-icon name="menu"></ion-icon>
</label>
<div class="logo">
CN.
</div>
<ul>
<li class="active">HOME</li>
<li>ABOUT</li>
<li>SERVICE</li>
<li>PORTFOLIO</li>
<li>BLOG</li>
<li>PRIVACY</li>
<li><ion-icon name="search"></ion-icon></li>
</ul>
</nav>
<section>
<h4>Start Your Blog Today</h4>
<h1><span>C</span>reative<span> Networks</span></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<button>Learn More</button>
</section>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
</body>
</html>
Here we completed our tutorial.
If you face any problem please feel free to contact us.
If you like our article please share it with your friends and relatives.
Thanks for reading our article.
Complete gym website template with html and css with source code || Creative Networks
Education website template with the help of html and css – with source code || HTML AND CSS
How to Download and Install Window 11 for free [ 100% trick ]
Install Wamp Server Without Error – How Can Install Wamp Server In Windows 10 | Pc | Without Problem
Queries Solved:-
responsive navbar,responsive navbar html css,responsive menu,navbar,responsive menu bar,responsive navigation menu,responsive navbar tutorial,react navbar responsive,responsive navigation bar,responsive navigation,responsive,responsive navigation bar with html and css,responsive navigation bar tutorial,navbar css,css responsive navbar,responsive navbar flexbox,responsive navbar in html css,responsive navbar bootstrap 4.
website template,website templates,website,website design,create a website,how to make a website,how to create a website,html website,website tutorial,website design template,html website templates,best website templates,how to build a website,template,personal website templates,website design templates,templates,portfolio website templates,wordpress website templates,build a website,responsive website templates,download free website templates.
html website,html,css,html and css,how to create a website using html and css,how to make a website using html and css,website using html and css,website template design using html and css,build a website with html and css,html template,html website template,website design,simple website using html and css,website,how to create website,how to create website using html and css,make websites with html templates,free html templates