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

+ 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

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

              
                <table>
  <tr>
    <td>Un</td>
    <td>inline-block</td>
    <td>Description inline-block</td>
  </tr>
  <tr>
    <td>Deux table-cell</td>
    <td>block</td>
    <td>Description block</td>
  </tr>
</table>
<hr>
<table>
  <tr>
    <td>Un</td>
    <td>inline-block</td> 
    <td>Description inline-block</td>
  </tr>
  <tr>
    <td>Deux</td>
    <td>block</td>
    <td>block deux mais un peu trop long pour celui-ci</td>
  </tr>
</table><hr>
<table>
  <tr>
    <td>Un</td>
    <td>Un float </td>
    <td>et un block<br>qui casse le flottant sur sa hauteur</td>
  </tr>
  <tr>
    <td>Deux -</td>
    <td>block</td>
    <td>block deux mais plus long pour celui-ci</td>
  </tr>
</table>
<hr>
<p>Grid c'est pas mal quand-même</p>
              
            
!

CSS

              
                table {margin:auto;border:solid red;}
table tr td ~ td {
  display: inline-block;
}
table tr:nth-child(2) td ~ td {
  display: block;
}
table tr:nth-child(2) td:last-child {
  margin-top: 2px;
}

table td {
  border: 1px solid grey;
  background:lightgreen;
  padding: 0.25em;
}
table:nth-child(5) tr:nth-child(1) td:nth-child(2) {
  float: left;
}
table:nth-child(5) tr td ~ td {
  margin-right: 2px;
  display: block;
  overflow: hidden;
}
body {
  background: #f5f5f5;
}
p {text-align:center}

body:before {
  content:'LA SOUPE AU BALISE : table destructurée';
  display:table;
  text-align:center;
  font-size:1.6em;
  margin: 0.5em auto;
  padding:0.25em;
  font-weight:bold;
  color:#fff;
  text-shadow:0 0 1px black, -3px -3px tomato, 3px 3px lime;
  border:solid rgba(0,0,0,0);
  box-shadow: inset 0 -3px  red, 3px 6px  0 -3px lime
}
              
            
!

JS

              
                
              
            
!
999px

Console