Last active
January 23, 2021 21:17
-
-
Save mike-pete/eaf357362031ff4e2adeec8392239aa6 to your computer and use it in GitHub Desktop.
Geekwise Nav Bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div class="nav"> | |
<a href="/">Home</a> | |
<a href="/contact">Contact</a> | |
<a href="/about">About</a> | |
<a href="/login">Login</a> | |
<img src="https://geekwiseacademy.com/wp-content/themes/geekwise/svg/geekwise-academy-logo-horizontal.svg" alt=""> | |
</div> | |
<br> | |
<img src="https://geekwiseacademy.github.io/virtual-websites-for-beginners/img/geekwise_owl.png" alt=""> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
margin: 0; | |
background-color: #eee; | |
} | |
.nav{ | |
background-color: white; | |
border-bottom: 1px solid #555; | |
width:100%; | |
} | |
a{ | |
text-decoration: none; | |
border: 1px solid #555; | |
color: #555; | |
padding: 8px; | |
margin: 10px; | |
display: inline-block; | |
border-radius: 4px; | |
transition: background-color .2s; | |
font-family: sans-serif; | |
font-weight: 600; | |
} | |
a:hover{ | |
background-color: #555; | |
color:white; | |
} | |
.nav > img{ | |
height:40px; | |
float: right; | |
margin:10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment