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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <ons-page>
  <ons-toolbar>
    <div class="center">Grid</div>
  </ons-toolbar>
  <h3>Bottom-aligned Grid Cells</h3>
  <ons-row align="bottom">
    <ons-col>
      <div class="Demo">
        This cell should be bottom-aligned.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do euismod tempor incididunt ut larbore et dolore magna aliqua.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        This cell should be bottom-aligned.
      </div>
    </ons-col>
  </ons-row>


  <h3>Vertically Centered Grid Cells</h3>
  <ons-row align="center">
    <ons-col>
      <div class="Demo">
        This cell should be verticaly-centered with the cell to its right.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do euismod tempor incididunt ut larbore et dolore magna aliqua.
      </div>
    </ons-col>
  </ons-row>

  <h3>Equally spaced</h3>
  <ons-row>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
  </ons-row>
  <p></p>
  <ons-row>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
  </ons-row>
  <p></p>
  <ons-row>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
  </ons-row>

  <h3>Full height</h3>
  <ons-row>
    <ons-col>
      <div class="Demo">
        This column's height will grow to the same height as the tallest column.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mollis velit non gravida venenatis. Praesent consequat lectus purus, ut scelerisque velit condimentum eu.
      </div>
    </ons-col>
  </ons-row>

  <h3>Individual Sizing</h3>
  <ons-row>
    <ons-col width="160px">Col width="160px"</ons-col>
    <ons-col>Col</ons-col>
    <ons-col>Col</ons-col>
  </ons-row>
  <p></p>
  <ons-row>
    <ons-col>
      <div class="Demo">Col</div>
    </ons-col>
    <ons-col width="33%">
      <div class="Demo">Col width="33%"</div>
    </ons-col>
  </ons-row>
  <p></p>
  <ons-row>
    <ons-col width="25%">
      <div class="Demo">Col width="25%"</div>
    </ons-col>
    <ons-col>
      <div class="Demo">Col</div>
    </ons-col>
    <ons-col width="33%">
      <div class="Demo">Col width="33%"</div>
    </ons-col>
  </ons-row>
  <p></p>
  <ons-row>
    <ons-col width="100px">
      <div class="Demo">Col width="100px"</div>
    </ons-col>
    <ons-col>
      <div class="Demo">Col</div>
    </ons-col>
    <ons-col width="50px">
      <div class="Demo">Col width="50px"</div>
    </ons-col>
  </ons-row>

  <h3>Top-aligned Grid Cells</h3>
  <ons-row align="top">
    <ons-col>
      <div class="Demo">
        This cell should be top-aligned.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do euismod tempor incididunt ut larbore et dolore magna aliqua.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        This cell should be top-aligned.
      </div>
    </ons-col>
  </ons-row>

  <h3>Mixed Vertical Alignment</h3>
  <ons-row>
    <ons-col align="top">
      <div class="Demo">
        This cell should be top aligned.
      </div>
    </ons-col>
    <ons-col>
      <div class="Demo">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do euismod tempor incididunt ut larbore et dolore magna aliqua.
      </div>
    </ons-col>
    <ons-col align="center">
      <div class="Demo">
        This cell should be center-aligned.
      </div>
    </ons-col>
    <ons-col align="bottom">
      <div class="Demo">
        This cell should be bottom-aligned.
      </div>
    </ons-col>
  </ons-row>
</ons-page>
              
            
!

CSS

              
                .col {
  border: 1px solid #ccc;
  background: #fff;
  overflow: hidden;
  padding: 4px;
  color: #999;
}

.page__content {
  background-color: #f6f6f6;
  padding: 8px;
}

h3 {
  color: #666;
  font-size: 17px;
}
              
            
!

JS

              
                ons.bootstrap();
              
            
!
999px

Console