initial
This commit is contained in:
parent
540c3b56ca
commit
31447796c9
30
index.html
Normal file
30
index.html
Normal file
@ -0,0 +1,30 @@
|
||||
<!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>reValuate</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul class="navbar">
|
||||
<div class="navbar">
|
||||
<li><a href="#home">Home</a></li>
|
||||
<li><a href="#news">News</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
|
||||
<li style="float:right" class="dropdown">
|
||||
<a href="javascript:void(0)" class="dropbtn">About</a>
|
||||
<div class="dropdown-content">
|
||||
<a href="#User">User</a>
|
||||
<a href="#Balance">Balance</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</div>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
75
style.css
Normal file
75
style.css
Normal file
@ -0,0 +1,75 @@
|
||||
body{
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
ul.navbar {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background-color: #469330 ;
|
||||
}
|
||||
|
||||
ul.navbar li {float: left;}
|
||||
|
||||
ul.navbar li a {
|
||||
display: block;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 14px 16px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul.navbar li a:hover:not(.active) {background-color: #111;}
|
||||
|
||||
ul.navbar li a.active {background-color: #92ed77 ;}
|
||||
|
||||
ul.navbar li.right {float: right;}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
ul.navbar li.right,
|
||||
ul.navbar li {float: none;}
|
||||
}
|
||||
|
||||
|
||||
li a, .dropbtn {
|
||||
display: inline-block;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 14px 16px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
li a:hover, .dropdown:hover .dropbtn {
|
||||
background-color: #469330 ;
|
||||
}
|
||||
|
||||
li.dropdown {
|
||||
display: flex;
|
||||
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
position: absolute;
|
||||
background-color: #469330 ;
|
||||
min-width: 160px;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||
z-index: 1;
|
||||
width: 80%;
|
||||
margin:auto;
|
||||
}
|
||||
|
||||
.dropdown-content a {
|
||||
color: white;
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.dropdown-content a:hover {background-color: #f1f1f1;}
|
||||
|
||||
.dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
}
|
Reference in New Issue
Block a user