cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

  <button id='hamburger' onClick='menuToggle()'>
    <img src='https://cdn4.iconfinder.com/data/icons/wirecons-free-vector-icons/32/menu-alt-512.png' />
  <div id='menu' class='hidden'>
    <a href='#'>Item 1</a>
    <a href='#'>Item 2</a>
    <a href='#'>Item 3</a>
<h1>Make the screen smaller than 500px</h1>
  I'm writing a series of blog posts about responsive design and utilizing the tools we use everyday to make our websites better across all devices. This is a demo of the second post in the series and an explanation of this demo can be found <a href='http://blog.natenorthway.com/ind?id=24' target='_blank'>here</a>
              a {
  color: #292929;
  text-decoration: none;
a:hover {
  color: lighten(#292929, 15%);
  text-decoration: underline;
a:active {
  color: lighten(#292929, 25%);
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f0f0f0;
  padding: 3.125%;
h1 {
  margin-top: 200px;
  padding: 0 3.125%;
p {
  padding: 0 3.125%;
/*Start paying attention here!*/
#hamburger {
  display: none;
  height: 50px;
  width: 50px;
  outline: none;
  border: none;
  background: transparent;
#hamburger img {
  width: 100%;
  height: 100%;
#hamburger:active {
  box-shadow: inset 0 0 10px .25px #292929;
@media (max-width: 500px) {
  #hamburger {
    display: inline-block;
  .active {
    display: block;
    text-align: center;
  .hidden {
    display: none;
              $menu = document.getElementById('menu');
function menuToggle() {
  $state = $menu.className;
  if ($state == 'active') {
  } else {
Loading ..................