Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                <main>  
<center class="hero">
    <h1>Marx</h1>
    <h3 id="tagline">The classless CSS reset (perfect for Communists).</h3>
    <p>No JavaScript. No Classes. Just raw CSS. <br><small>11.1 kB / 3.7 kB (Gzip) minified.</small></p>
    <div> <a href="https://raw.githubusercontent.com/mblode/marx/master/css/marx.min.css" target="_blank" id="download"><button>Download</button></a> <a href="https://github.com/mblode/marx" target="_blank" id="github"><button>Github</button></a> </div>
  </center>
  <h3 id="is-marx-for-you">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 id="key-features">Key Features</h3>
  <ul>
    <li>Built atop of Sanitize.css, meaning all browsers render consistently.</li>
    <li>Customise using Sass and Stylus preprocessors.</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>
  <p><a href="https://github.com/mblode/marx">For more info, check out Marx on Github.</a></p>

<h1>Documentation</h1>
  <pre>
  <code>
  &lt;main&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>, <u>underline tag</u></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 name=name type="text" id=name tabindex=1 placeholder="Text Input"><br> <label for=textarea>Textarea:</label> <textarea rows=4 cols=27 id=textarea placeholder="Text Area"></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 type=radio name=radio-1 id=radio-1 tabindex=1 value=radio-1 /><br> <label for=radio-2>Radio 2:</label> <input type=radio name=radio-2 id=radio-2 tabindex=2 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="checkbox1">Checkbox 1:</label> <input type="checkbox" name="checkbox1" id="checkbox1" /><br> <label for="checkbox2">Checkbox 2:</label> <input type="checkbox" name="checkbox2" id="checkbox2" /> <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 name=select-choice id=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>&copy; 2019 &middot; <a href="https://github.com/mblode/" target="_blank">Matthew Blode</a></p>
  </footer>
</main>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console