<!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">
<title>nav1</title>
</head>
<style>
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap');
*{
margin: 0;
padding: 0;
}
body{
background: grey;
}
ul{
background-color: chartreuse;
padding: 10px;
}
li{
list-style: none;
}
a{
font-family: Raleway;
text-decoration: none;
margin: 0 20px;
color: black;
animation: color 5s infinite;
text-shadow: 2px 2px 9px black;
}
@keyframes color {
from{
color: blue;
}
to{
color: red;
}
}
.fill{
display: none;
background: rgb(148, 10, 10);
margin: -10px auto;
/* border: 3px solid green; */
border-radius: 5px;
height: 300px;
width: 200px;
padding: 30px;
}
label{
font-family:Raleway ;
color: chartreuse;
}
input{
height: 20px;
margin: 10px 0;
width: 100%;
}
input[type="button"]{
height: 20px;
margin: 30px 2px;
width: 45%;
}
input[type="button"]:hover{
background: chartreuse;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
<body>
<div class="header">
<ul>
<li>
<a href="#">Home</a>
<a href="#">Product</a>
<a href="#">Career</a>
<a href="#" onclick="g()" >Login</a>
</li>
</ul>
<form action="#" method="post">
<div class="fill" id="show">
<label for="Name" id="name" >Email</label>
<input type="Email" name="" id="">
<label for="Password" id="pas" >Password</label>
<input type="password" name="" id="">
<input type="button" value="Login">
<input type="button" value="close" onclick="hide()">
</form>
</div>
</div>
</body>
<script>
function g(){
var form=document.getElementById("show").style.display="block";
}
function hide(){
var form=document.getElementById("show").style.display="none";
}
</script>
</html>
Comments
Post a Comment