Skip to content

Instantly share code, notes, and snippets.

@kenmickles
Last active August 29, 2015 14:01
Show Gist options
  • Save kenmickles/aedf950b8f575c408030 to your computer and use it in GitHub Desktop.
Save kenmickles/aedf950b8f575c408030 to your computer and use it in GitHub Desktop.
CSS snippet for Rachel's blog
/* Option 1: right align the menu on just the blog page */
.blog-sidebar-left #topNav {
width: 1000px;
max-width: 100%;
text-align: center;
margin: 0 auto;
float: none;
}
.blog-sidebar-left #topNav .main-nav {
float: right;
margin-right: 0;
margin-bottom: 40px;
}
/* Option 2: right align the menu on all pages */
#topNav {
width: 1000px;
max-width: 100%;
text-align: center;
margin: 0 auto;
float: none;
}
#topNav .main-nav {
float: right;
margin-right: 0;
margin-bottom: 40px;
}
/* Option 3: Add a border below the menu */
#topNav {
border-bottom: 1px solid #eee;
margin-bottom: 40px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment