Skip to content

Instantly share code, notes, and snippets.

@brookr
Forked from stephanielingwood/top_nav.css
Created November 17, 2018 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brookr/c723c801d2c396ed4b4a1cb49d7b5743 to your computer and use it in GitHub Desktop.
Save brookr/c723c801d2c396ed4b4a1cb49d7b5743 to your computer and use it in GitHub Desktop.
CSS styling template for a nav bar on the top
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
width: 800px;
height: 100%;
}
header {
background-color: ;
padding: 5px;
font-size: ;
display: block;
}
nav {
float: left;
width: 100%;
}
nav ul {
padding: ;
float: left;
border-bottom: ;
list-style-type: none;
}
nav li {
float: left;
}
nav li a {
display: block;
height: 25px;
padding: 12px 18px 8px 18px;
vertical-align: middle;
}
a {
color: ;
}
section {
width: 73%;
display: inline-block;
float: left;
}
aside {
width: 17%;
display: inline-block;
background-color:;
padding:;
min-height: 100%;
}
aside ul {
list-style-type: none;
}
footer {
width: 790px;
background-color:;
color:;
clear: both;
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment