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

Popular posts from this blog

How to make simple bill maker by using python tkinter

Make a GST Calculator using HTML and JavaScript

Write a program to find the sum of 1/2+4/3+5/6+8/7+9/10 using loop in java