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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <div class="container-fluid" style="margin-top: 10px">

  <div class="table-row header">
    <div class="text">First Name</div>
    <div class="text">Last Name</div>
    <div class="text">Email</div>
    <div class="text">Birthday</div>
    <div class="num">Min</div>
    <div class="num">Max</div>
    <div class="num">Avg</div>
    <div class="num">Last</div>

  <div class="table-row">
    <div class="text">Vasan</div>
    <div class="text">Subramanian</div>
    <div class="text" title=""></div>
    <div class="text">January 14, 1996</div>
    <div class="num">1,024</div>
    <div class="num">65,536</div>
    <div class="num">5,120</div>
    <div class="num">7,680</div>

  <div class="table-row">
    <div class="text">Firstname</div>
    <div class="text">Lastname</div>
    <div class="text" title=""></div>
    <div class="text">February 31, 1948</div>
    <div class="num">2,484</div>
    <div class="num">5,536</div>
    <div class="num">87</div>
    <div class="num">785</div>

  <div class="table-row">
    <div class="text">Example</div>
    <div class="text">McDude</div>
    <div class="text" title="N/A">--</div>
    <div class="text">December 31, 1960</div>
    <div class="num">0</div>
    <div class="num">249,846</div>
    <div class="num">45,529</div>
    <div class="num">6,687</div>



 * Define the widths: play around with these to get a best fit.
@text-width: 180px;
@num-width: 80px;

// Main container: initialize the flex, direction is row
.table-row {
  display: flex;           display: -webkit-flex;
  flex-direction: row;     -webkit-flex-direction: row;
  flex-grow: 0;            -webkit-flex-grow: 0;
  flex-wrap: wrap;         -webkit-flex-wrap: wrap;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;

// Text based cells: grow, truncate and show ellipsis when there is not enough space
.text {
  flex-grow: 1;            -webkit-flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 20px;

// Fix the minimum width of the leaf level cells
.text {
  width: @text-width;

.num {
  width: @num-width;

 * General good-look styles, not mandatory.
body {
  font-size: 20px;

.table-row {
  border-bottom: 2px solid #e0e0e0;
  border-collapse: collapse;
  padding-top: 5px;

.table-row.header {
  background-color: #FFEEDB;
  font-weight: bold;
  padding-top: 8px;
  padding-bottom: 8px;