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

              
                
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">

    <title>Foundation base test</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

  </head>
  <body>  

  <div class="container">
    <div class="row">
      <div class="col-xs-12">


          <h1>Example HTML</h1>    

          <p>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Explicabo, non, facere incidunt aut expedita esse quod unde eveniet tenetur veritatis voluptatum id deleniti similique enim praesentium earum reprehenderit quidem amet.
          </p>

          <h2>This document shows various HTML elements</h2>

          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit Lorem ipsum dolor sit amet, volutpat. </p>
          <h2>This is 2nd level heading bh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi luptatum zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam no</h2>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>            

          <h3>This is 3rd level heading</h3>          
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
          <h4>This is 4th level heading</h4>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
          <h5>This is 5th level heading</h5>
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
          <h6>This is 6th level heading</h6>                        


          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>

          <h2>Basic block level elements</h2>

          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>

          <address>This holds an address. Block level, but without margin or padding because they're often stacked.</address>

          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim zzril delenit Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>

          <div>This is a <code>div</code> element. Lorem ipsum dolor sit amet, elit, sed diam nonummy nibh euismod tincidunt ut consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. (End of <code>div</code>.)</div>

          <blockquote>
            <p>This is a block quotation containing a <em>single</em> paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p></blockquote>


          <p>The following contains address information about the author, in an <code>address</code>
          element.</p>


          <h2>Lists</h2>

          <p>This is a paragraph before an <strong>unnumbered</strong> list (<code>ul</code>). Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>

          <ul>
            <li>One.</li>
            <li>Two.</li>
            <li>Three. Well, probably this list item should be longer. Note that for short items lists look better if they are compactly presented, whereas for long items, it would be better to have more vertical spacing between items.</li>
            <li>Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it.</li>
          </ul>

          <p>This is a paragraph before a <strong>numbered</strong> list (<code>ol</code>). Note that the spacing between a paragraph and a list before or after that is hard to tune in a user style sheet. You can't guess which paragraphs are logically related to a list, e.g. as a "list header".</p>

          <ol>
            <li>One.</li>
            <li>Two.</li>
            <li>Three. Well, probably this list item should be longer. Note that if items are short, lists look better if they are compactly presented, whereas for long items, it would be better to have more vertical spacing between items.</li>
            <li>Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it.</li>
            <li>Five</li>
            <li>Six</li>
            <li>Seven</li>
            <li>Eight</li>
            <li>Nine</li>
            <li>Ten</li>

          </ol>

          <p>This is a paragraph before a <strong>definition</strong> list (<code>dl</code>). In principle, such a list should consist of <em>terms</em> and associated definitions. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
          <dl>
            <dt>Apple</dt>
            <dd>is a fruit.</dd>
            <dt>Banana</dt>
            <dd>Is also a fruit.</dd>
            <dt>Tomato</dt>
            <dd>Is debatable. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</dd>
          </dl>

          <h2>Text-level markup</h2>


          <ul>
            <li> <abbr title="Cascading Style Sheets">CSS</abbr> (an abbreviation;
           <code>abbr</code> markup used)</li>
            <li> <acronym title="radio detecting and ranging">radar</acronym> (an acronym; <code>acronym</code> markup used)</li>

            <li> <cite>Origin of Species</cite> (a book title; <code>cite</code> markup used)</li>
            <li> <code>a[i] = b[i] + c[i);</code> (computer code; <code>code</code> markup used)</li>

            <li> an <dfn>octet</dfn> is an entity consisting of eight bits
                 (<code>dfn</code> markup used for the term being defined)</li>
            <li> this is <em>very</em> simple (<code>em</code> markup used for emphasizing
                 a word)</li>

            <li> type <kbd>yes</kbd> when prompted for an answer (<code>kbd</code> markup
                 used for text indicating keyboard input)</li>
            <li> <q>Hello!</q> (<code>q</code> markup used for quotation)</li>

            <li> He said: <q>She said <q>Hello!</q></q> (a quotation inside a quotation)</li>
            <li> you may get the message <samp>Core dumped</samp> at times
                 (<code>samp</code> markup used for sample output)</li>

            <li> <strong>this is highlighted text</strong> (<code>strong</code> markup used)</li>

            <li> <tt>text in monospace font</tt> (<code>tt</code> markup used)</li>

            <li> the command <code>cat</code> <var>filename</var> displays the
                 file specified by the <var>filename</var> (<code>var</code> markup
                 used to indicate a word as a variable).</li>
            <li> In order to test how subscripts and superscripts (<code>sub</code> and <code>sup</code> markup) work inside running text, we need some dummy text around constructs like x<sub>1</sub> and H<sub>2</sub>O (where subscripts occur). So here is some fill so that you will (hopefully) see whether and how badly the subscripts and superscripts mess up vertical spacing between lines. Now superscripts: M<sup>lle</sup>, 1<sup>st</sup>, and then some mathematical notations: e<sup>x</sup>, sin<sup>2</sup> <i>x</i>, and some nested superscripts (exponents) too: Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </li>

          </ul>

          <p>Some of the elements tested above are typically displayed in a monospace font, often using the <em>same</em> presentation for all of them. This tests whether that is the case on your browser:</p>

          <ul>
            <li><code>This is sample text inside code markup</code></li>
            <li><kbd>This is sample text inside kbd markup</kbd></li>
            <li><samp>This is sample text inside samp markup</samp></li>

            <li><tt>This is sample text inside tt markup</tt></li>
          </ul>

          <h2>Links</h2>

          <ul>
            <li><a href="http://developer.yahoo.com/yui">developer.yahoo.com/yui</a></li>
            <li><a href="http://yuiblog.com">the YUI Blog</a></li>
          </ul>


          <h2>Tables</h2>

          <p>The following table has a caption. The first row and the first column contain table header cells only; other cells are data cells.</p>

          <table summary="each row names a nordic country and specifies its total area and land area, in square kilometers">
            <caption>Caption: Sample table: Areas of the Nordic countries, in sq km</caption>
            <tbody><tr>
              <th>Country</th>
              <th>Total area</th>
              <th>Land area</th>
              <th>Population</th>
            </tr>
            <tr>
              <th>Denmark</th>
              <td>43,070</td>
              <td>42,370</td>
              <td>7,230,000</td>
            </tr>
            <tr>
              <th>Finland</th>
              <td>337,030</td>
              <td>305,470</td>
              <td>17,830,000</td>      
            </tr>
            <tr>
              <th>Iceland</th>
              <td>103,000</td>
              <td>100,250</td>
              <td>5,230,000</td>     
            </tr>
            <tr>
              <th>Norway</th>
              <td>324,220</td>
              <td>307,860</td>
              <td>18,200,000</td>
            </tr>
            <tr>
              <th>Sweden</th>
              <td>449,964</td>
              <td>410,928</td>
              <td>28,570,000</td>
            </tr>
          </tbody>
          </table>
          

          <h2>Forms</h2>


          <form class="form-horizontal" role="form">
            <h3>Contact form</h3>
            <label for="name">
              Name
            </label>
            <input type="text" id="name" placeholder="Name">
            <br>    
            <label for="email">
              Email
            </label>
            <input type="email" id="email" placeholder="Email">
            <br>
            <label for="message">
              Message
            </label>
            <textarea id="message" placeholder="Message"></textarea>
            <br>
            <input type="checkbox">&nbsp;Send me a monthly newsletter 
            <br>
            <button type="submit">Send</button>
          </form>  

          <br><br>

          <form action="http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi">

            <div><input type="hidden" name="hidden field" value="42"></div>
            <div><label for="f1">Single-line text input field: <input id="f1" name="text" size="20" value="Default text."></label></div>
            <div><label for="f2">Multi-line text input field (textarea):</label></div>
            <div><textarea id="f2" name="textarea" rows="16" cols="20">Default text.</textarea></div>

            <p>The following two radio buttons are inside <code>fieldset</code> element with a <code>legend</code>:</p>


            <fieldset>
              <legend>Legend</legend>
              <div>
                <label for="f3">Radio button 1</label>
                <input id="f3" type="radio" name="radio" value="1">
              </div>
              <div>
                <label for="f4">Radio button 2 (initially checked)</label>

                <input id="f4" type="radio" name="radio" value="2" checked="">
              </div>
            </fieldset>

            <fieldset>
              <legend>Check those that apply</legend>
              <div>
                <label for="f5">Checkbox 1</label>

                <input id="f5" type="checkbox" name="checkbox">
              </div>
              <div>
                <label for="f6">Checkbox 2 (initially checked)</label>
                <input id="f6" type="checkbox" name="checkbox2" checked="">
              </div>
            </fieldset>

            <p>

              <label for="f10">A <code>select</code> element with <code>size="1"</code> (dropdown box):</label>
            </p>

            <select id="f10" name="select1" size="1">
              <option>one</option>

              <option selected="">two (default)</option>
              <option>three</option>
            </select>

            <p>
              <label for="f11">A <code>select</code> element with <code>size="3"</code> (listbox):</label>

            </p>

            <select id="f11" name="select2" size="3">
              <option>one</option>
              <option selected="">two (default)</option>
              <option>three</option>
            </select>

            <div>
              <label for="f99">Submit button:</label>
              <input id="f99" type="submit" name="submit" value="Just a test">
            </div>
            <div>
              <label for="f0">Reset button:</label>
              <input id="f0" type="reset" name="reset" value="Reset">
            </div>
          </form>


          <p>This next bit shows that PREformatted text is working.</p>

        <pre>1
         2
          3
           4
            5
        </pre>


        
      </div>
    </div>
  </div>
        
  </body>
</html>
              
            
!

CSS

              
                /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  __margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent displaying `audio` without controls in Mobile Safari 4/5/6/7.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address inconsistent styling of `abbr[title]`.
 * 1. Correct styling in Firefox 39 and Opera 12.
 * 2. Correct missing styling in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Address inconsistent styling of b and strong.
 * 1. Correct duplicate application of `bolder` in Safari 6.0.2.
 * 2. Correct style set to `bold` in Edge 12+, Safari 6.2+, and Chrome 18+.
 */

b,
strong {
  font-weight: inherit; /* 1 */
}

b,
strong {
  font-weight: bolder; /* 2 */
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address inconsistent styling of `hr`.
 * 1. Correct `box-sizing` set to `border-box` in Firefox.
 * 2. Correct `overflow` set to `hidden` in IE 8/9/10/11 and Edge 12.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * 1. Correct inheritance and scaling of font-size for preformatted text.
 * 2. Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct font properties not being inherited.
 * 2. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  font: inherit; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Restore focus style in Firefox 4+ (unset by a rule above)
 */

button:-moz-focusring,
input:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * Address `appearance` set to `searchfield` in Safari and Chrome.
 */

input[type="search"] {
  -webkit-appearance: textfield;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Restore font weight (unset by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}
              
            
!

JS

              
                
              
            
!
999px

Console