Skip to content

Instantly share code, notes, and snippets.

@mike-pete
Last active January 23, 2021 21:17
Show Gist options
  • Save mike-pete/eaf357362031ff4e2adeec8392239aa6 to your computer and use it in GitHub Desktop.
Save mike-pete/eaf357362031ff4e2adeec8392239aa6 to your computer and use it in GitHub Desktop.
Geekwise Nav Bar
<!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>
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