Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                  <nav>
    <p class="brand"><a href="#">Marx</a></p>
  </nav>

  <main>
    <footer class="hero">
      <h3>Marx - The stylish CSS reset.</h3>

      <p>No Javacript. No Classes. Just raw CSS.<br>
      <small>7.3 kb minified.</small></p>

      <div>
        <a href="https://cdn.rawgit.com/mblode/marx/master/css/marx.min.css"
        target="_blank"><button>Download</button></a> <a href=
        "https://github.com/mblode/marx" target=
        "_blank"><button>Github</button></a>
      </div>
    </footer>

    <section>
      <h3>Is Marx for you?</h3>

      <p>Marx is a CSS stylesheet to be used in any projects (namely small
      ones). If you don't need the weight of heavy frameworks or you would just
      like to make an edible website quickly, Marx is perfect for you. It can
      be used out of the minified box but it can also be customised and styled
      through the use of HTML classes.</p>

      <h3>Key Features</h3>

      <ul>
        <li>Built atop of Sanitize.css, meaning all browsers render
        consistently.</li>

        <li>Created using the SASS preprocer(Customise all the
        variables!).</li>

        <li>Responsive and mobile-friendly.</li>

        <li>Clean, beautiful typography.</li>

        <li>Forms, tables, buttons and navigation.</li>

        <li>Zero classes so it already works with your HTML.</li>

        <li>Drop-dead gorgeous.</li>

        <li>It just works.</li>
      </ul><a href="https://github.com/mblode/marx">For more info, check out
      Marx on Github.</a>
    </section>

    <h1>Documentation</h1><!-- article -->

    <h2>&lt;main&gt; <small>= Container</small></h2><!-- article -->

    <article>
      <h2>&lt;article&gt; <small>= 60% width</small></h2>
    </article><!-- aside -->

    <aside>
      <h2>&lt;aside&gt; <small>= 40% width</small></h2>
    </aside><!-- section -->

    <section>
      <h2>&lt;section&gt; <small>= 100% width</small></h2>
    </section>

    <footer>
      <p>&lt;footer&gt; <small>= 100% width + centered text</small></p>
    </footer>
    <pre>
  <code>
  &lt;main&gt;
    &lt;section&gt;&lt;/section&gt;
    &lt;article&gt;&lt;/article&gt;
    &lt;aside&gt;&lt;/aside&gt;
    &lt;footer&gt;&lt;/footer&gt;
  &lt;/main&gt;
  </code>
</pre>

    <section>
      <h2>Typography</h2>

      <h3>Headings</h3>

      <h1>h1 <small>small h1</small></h1>

      <h2>h2 <small>small h2</small></h2>

      <h3>h3 <small>small h3</small></h3>

      <h4>h4 <small>small h4</small></h4>

      <h5>h5 <small>small h5</small></h5>

      <h6>h6 <small>small h6</small></h6>
      <pre>
  <code>
  &lt;h1&gt;h1
    &lt;small&gt;small h1&lt;/small&gt;
  &lt;/h1&gt;

  &lt;h2&gt;h2
    &lt;small&gt;small h2&lt;/small&gt;
  &lt;/h2&gt;

  &lt;h3&gt;h3
    &lt;small&gt;small h3&lt;/small&gt;
  &lt;/h3&gt;

  &lt;h4&gt;h4
    &lt;small&gt;small h4&lt;/small&gt;
  &lt;/h4&gt;

  &lt;h5&gt;h5
    &lt;small&gt;small h5&lt;/small&gt;
  &lt;/h5&gt;

  &lt;h6&gt;h6
    &lt;small&gt;small h6&lt;/small&gt;
  &lt;/h6&gt;
  </code>
</pre>

      <h3>Body copy</h3>

      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi
      ipsa tempore alias illum, in dicta sed laboriosam inventore sequi,
      accusantium magnam dolores modi commodi, magni labore illo a quisquam
      incidunt.</p>

      <p><strong>strong tag</strong>, <b>b tag</b>, <em>em tag</em>, <i>italic
      tag</i>, <span style="text-decoration: underline">underline
      tag</span></p>

      <figcaption>
        Hello, world!
      </figcaption>

      <blockquote>
        "Capitalism? More like CRAPitalism, am I right?"<br>
        - Karl Marx, probably.
      </blockquote>
      <pre>
  <code>
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit.&lt;/p&gt;

  &lt;p&gt;
    &lt;strong&gt;strong&lt;/strong&gt;
    &lt;b&gt;b&lt;/b&gt;
    &lt;em&gt;em&lt;/em&gt;
    &lt;italic&gt;italic&lt;/italic&gt;
    &lt;underline&gt;underline&lt;/underline&gt;
  &lt;/p&gt;

  &lt;figcaption&gt;Hello, world!&lt;/figcaption&gt;

  &lt;blockquote&gt;Hello, world!&lt;/blockquote&gt;
  </code>
</pre>

      <h3>Code</h3>
      <pre>
  <code>
  pre {
    background: #efefef;
    color: #444;
    display: block;
    font-family: Menlo, monospace;
    font-size: 1.4rem;
    margin-bottom: .8remrem;
    padding: 1.6rem;
    word-break: break-all;
    word-wrap: break-word;
  }
  code {
    background: #efefef;
    color: #444;
    font-family: Menlo, monospace;
    font-size: 1.4rem;
    word-break: break-all;
    word-wrap: break-word;
  }
  </code>
</pre>
      <pre>
  <code>
  &lt;pre&gt;
    &lt;code&gt;So meta&lt;/code&gt;
  &lt;/pre&gt;
  </code>
</pre>

      <h3>Lists</h3>

      <ul>
        <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>

        <li>Aliquam tincidunt mauris eu risus.</li>

        <li>Vestibulum auctor dapibus neque.</li>
      </ul>

      <ol>
        <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>

        <li>Aliquam tincidunt mauris eu risus.</li>

        <li>Vestibulum auctor dapibus neque.</li>
      </ol>

      <dl>
        <dt>Lorum Ipsum</dt>

        <dd>Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
        labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
        exercitation ullamco laboris nisi ut aliquip ex ea commodo
        consequat.</dd>

        <dt>Lorum Ipsum</dt>

        <dd>Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
        labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
        exercitation ullamco laboris nisi ut aliquip ex ea commodo
        consequat.</dd>
      </dl>
      <pre>
  <code>
  &lt;ul&gt;
    &lt;li&gt;Unordered list&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Unordered links&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;

  &lt;ol&gt;
    &lt;li&gt;Ordered list&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Ordered links&lt;/a&gt;&lt;/li&gt;
  &lt;/ol&gt;

  &lt;dl&gt;
    &lt;dt&gt;Description list title&lt;/dt&gt;
    &lt;dd&gt;Description&lt;/dd&gt;
  &lt;/dl&gt;
  </code>
</pre>

      <h2>Buttons</h2><input type="submit" value="Input Submit">
      <button>Button</button> <a href="#"><button>Button Link</button></a>
      <button disabled>Disabled Button</button>
      <pre>
  <code>
  &lt;input type="submit" value="Submit"&gt;

  &lt;button&gt;Button&lt;/button&gt;

  &lt;a href="#"&gt;&lt;button&gt;Button Link&lt;/button&gt;&lt;/a&gt;
  </code>
</pre>

      <h2>Forms</h2>

      <form>
        <h3>Text Inputs</h3><label for="name">Text Input:</label> <input id=
        "name" name="name" placeholder="Text Input" tabindex="1" type=
        "text"><br>
        <label for="textarea">Textarea:</label> 
        <textarea cols="27" id="textarea" placeholder="Text Area" rows="4">
</textarea>
        <pre>
  <code>
  &lt;label for="text"&gt;Text:&lt;/label&gt;
  &lt;input type="text" name="text" id="text" tab-index="1" placeholder="text"&gt;&lt;/input&gt;

  &lt;label for="textarea"&gt;Text Area:&lt;/label&gt;
  &lt;textarea rows="4" cols="27" id="textarea" placeholder="textarea"&gt;&lt;/textarea&gt;
  </code>
</pre>

        <h3>Radio Buttons</h3><label for="radio-choice-1">Radio 1:</label>
        <input id="radio-1" name="radio-1" tabindex="1" type="radio" value=
        "radio-1"><br>
        <label for="radio-2">Radio 2:</label> <input id="radio-2" name=
        "radio-2" tabindex="2" type="radio" value="radio-2">
        <pre>
  <code>
  &lt;label for="radio"&gt;Radio:&lt;/label&gt;
  &lt;input type="radio" name="radio" id="radio" tab-index="1" value="true"&gt;&lt;/input&gt;
  </code>
</pre>

        <h3>Checkbox Buttons</h3><label for="checkbox">Checkbox 1:</label>
        <input id="checkbox" name="checkbox" type="checkbox"><br>
        <label for="checkbox">Checkbox 2:</label> <input id="checkbox" name=
        "checkbox" type="checkbox">
        <pre>
  <code>
  &lt;label for="checkbox"&gt;Checkbox&lt;/label&gt;
  &lt;input type="checkbox" name="checkbox" id="checkbox"&gt;&lt;/input&gt;
  </code>
</pre>

        <h3>Dropdown Choices</h3><label for="select-choice">Select Dropdown
        Choice:</label> <select id="select-choice" name="select-choice">
          <option value="Choice 1">
            Choice 1
          </option>

          <option value="Choice 2">
            Choice 2
          </option>

          <option value="Choice 3">
            Choice 3
          </option>
        </select><br>
        <pre>
  <code>
  &lt;label for="drop"&gt;Dropdown&lt;/label&gt;
  &lt;select name="drop" id="drop"&gt;
    &lt;option value="drop1"&gt;One&lt;/option&gt;
    &lt;option value="drop2"&gt;Two&lt;/option&gt;
    &lt;option value="drop3"&gt;Three&lt;/label&gt;
  &lt;/select&gt;
  </code>
</pre><input type="submit" value="Submit">
      </form>

      <h2>Tables</h2>

      <table>
        <thead>
          <tr>
            <th>One</th>

            <th>Two</th>

            <th>Three</th>

            <th>Four</th>
          </tr>
        </thead>

        <tbody>
          <tr>
            <td>One</td>

            <td>Two</td>

            <td>Three</td>

            <td>Four</td>
          </tr>

          <tr>
            <td>One</td>

            <td>Two</td>

            <td>Three</td>

            <td>Four</td>
          </tr>

          <tr>
            <td>One</td>

            <td>Two</td>

            <td>Three</td>

            <td>Four</td>
          </tr>
        </tbody>
      </table>
      <pre>
  <code>
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;One&lt;/th&gt;
        &lt;th&gt;Two&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;One&lt;/td&gt;
        &lt;td&gt;Two&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code>
</pre>
  </section>

  <footer>
    <p>© Matthew Blode 2015</p>
  </footer>
</main>
              
            
!

CSS

              
                @import "compass/css3";


              
            
!

JS

              
                
              
            
!
999px

Console