Pure CSS Responsive Navbar Menu
HTML
<style>
<!--paste the compiled CSS here-->
</style>
<nav>
<div id="logo">
<a href="/">
Amanda & Dylan
</a>
</div>
<label for="drop" class="toggle">≡</label>
<input type="checkbox" id="drop" />
<ul class="menu">
<li>
<a href="#thestory">
The Story
</a>
</li>
<li>
<a href="#thebigday">
The Big Day
</a>
</li>
<li>
<a href="#thetrifectas">
The Trifectas
</a>
</li>
<li>
<a href="#411">
The 411 on 404 (i.e. All About Atlanta)
</a>
</li>
<li>
<a href="#lodging">
Lodging
</a>
</li>
</ul>
</nav>
SCSS
//Step 1. From the HTML box on the left, copy the code and paste it into Weebly.
//Step 2. In a new browser tab, visit http://beautifytools.com/scss-compiler.php and paste this whole section of SCSS into the box and press "Compile SCSS".
//Step 3. In Weebly, paste the compiled CSS output into the code that you previously pasted into Weebly, replacing the entire note between the <style> </style> tags.
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Bree+Serif);
$darkTrans: rgba(0, 0, 0, .9);
.toggle,
[id^=drop] {
display: none;
}
nav {
z-index: 2;
margin: 0;
padding: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
background-color: $darkTrans;
word-wrap: break-word !important;
font-family: 'Open Sans', sans-serif;
a {
display: block;
padding: 14px 20px;
color: #FFF;
font-size: 17px;
text-decoration: none;
&:hover {
background-color: rgba(255, 255, 255, 0.9);
color: #000;
}
}
#logo {
display: block;
float: left;
}
ul {
float: right;
padding: 0;
margin: 0;
list-style: none;
position: relative;
li {
margin: 0px;
display: inline-block;
float: left;
}
}
}
/* Since we'll have the "ul li" "float:left"
* we need to add a clear after the container. */
nav:after {
content: "";
display: table;
clear: both;
}
/* Hide Dropdowns by Default
* and giving it a position of absolute */
nav ul ul {
display: none;
position: absolute;
/* has to be the same number as the "line-height" of "nav a" */
top: 60px;
}
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
display: inherit;
}
/* Change ' +' in order to change the Dropdown symbol */
li > a:after {
content: ' +';
}
li > a:only-child:after {
content: '';
}
/* Media Queries
--------------------------------------------- */
@media all and (max-width: 768px) {
nav {
margin: 0;
#logo {
...