Last active
October 18, 2017 15:22
-
-
Save Ross-Hunter/f83bda3b16e4bec2477090a88ead3312 to your computer and use it in GitHub Desktop.
Flexbox Funtimes!
This file contains hidden or 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
<html> | |
<style> | |
.flex-container { | |
display: flex; | |
align-items: baseline; | |
justify-content: space-between; | |
} | |
.top-nav { | |
background-color: #551A8B; | |
color: rgba(255,255,255,0.8); | |
font-family: sans-serif; | |
border: 2px solid black; | |
padding: 0 20px; | |
} | |
.nav-menu { | |
justify-content: flex-end; | |
} | |
h1 { | |
font-size: 1em; | |
} | |
ul { | |
margin-left: 0; | |
padding-left: 0; | |
} | |
li { | |
list-style: none; | |
padding: 0 10px; | |
} | |
</style> | |
<body> | |
<nav class="flex-container top-nav"> | |
<h1>Grant's Dog Walking!</h1> | |
<ul class="flex-container nav-menu"> | |
<li>Home</li> | |
<li>Prices</li> | |
<li>Contact Us</li> | |
</ul> | |
</nav> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment