Navbar using HTML and CSS
Navbar using HTML and CSS
HTML CODE
<!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">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<nav class="menu">
<a href="#">Home</a>
<a href="#">Profile</a>
<a href="#">Gallary</a>
<a href="#">Contact</a>
</nav>
</body>
</html>
CSS Code
.menu{
overflow: hidden;
background-color: red;
}
.menu a{
float:left;
color:white;
text-shadow: rgb(19, 1, 1) 2px 2px 4px;
padding:14px 16px;
text-decoration: none;
font-size:17px;
}
.menu a:hover{
background-color: white;
color:red;
}
Comments
Post a Comment