/* Browser reset */
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
border: 0;
}
/* End of browser reset */
body {
background: url("https://www.worshipbackgroundsforfree.com/wp-content/uploads/2012/12/Screen-Shot-2012-12-20-at-11.21.52-AM.png") no-repeat center center fixed;
background-size: cover;
}
/* Defines header as a flexbox */
header {
height: 50px;
width: 100%;
background: rgb(255, 255, 255);
display: flex;
align-items: center;
justify-content: flex-end;
}
/* This is a flex item */
/* Removed <div> wrapped around <a> */
/* Positions index link on the left side of the flex container */
/* Added display:block to <a> so it doesn't need a <div> wrapped around it */
.title {
display: block;
font-size: 2em;
margin-right: auto;
margin-left: 10px;
color: rgb(0, 0, 0);
text-decoration: none;
font-family: "Great Vibes", cursive;
}
/* This is a flex item */
nav {
margin-right: 10px;
}
/* Removes bullets */
nav ul {
list-style: none;
}
nav li {
display: inline-block;
}
/* <a> has 4 pseudo-classes that must be in this order:
:link, :visited, :hover, :active
LoVe and HAte
i i oc
n s vt
k i ei
t rv
e e
d
*/
nav a:link,
nav a:visited {
text-decoration: none;
font-weight: bold;
color: rgb(0, 0, 0);
letter-spacing: 2px;
font-size: 1.1em;
/* Added so when hovered there's no overlap */
padding: 5px;
}
nav a:hover,
nav a:active {
text-decoration-line: underline;
text-decoration-style: wavy;
/* Added because it's buggy without it */
outline: 1px solid rgba(255, 255, 255, 0.1);
}
nav a.link-1:hover,
nav a.link-1:active {
text-decoration-color: red;
}
nav a.link-2:hover,
nav a.link-2:active {
text-decoration-color: green;
}
nav a.link-3:hover,
nav a.link-3:active {
text-decoration-color: blue;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Great+Vibes" rel="stylesheet">
<title>Wedding Draft</title>
</head>
<body>
<header>
<a class="title" href="index.html">The Mc-Stamm Wedding</a>
<nav>
<ul>
<li><a href="venue-info.html" class="link-1">Venue Info</a></li>
<li><a href="accommodations.html" class="link-2">Accommodations</a></li>
<li><a href="wedding-party.html" class="link-3">Wedding Party</a></li>
</ul>
</nav>
</header>
<main>
</main>
<footer>
</footer>
</body>
</html>