Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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="l-wrapper">
  <article class="card">
    <div class="card__header">
      <h3 class="card__title">正義Tシャツ</h3>
      <figure class="card__thumbnail">
        <img src="" alt="手書きの「正義」という文字が縦に大きくマジックで書かれている白いTシャツ" class="card__image">
    <div class="card__body">
      <p class="card__text">ごく普通の生地の白いTシャツに油性マジックで「正義」と書いただけの架空の半袖Tシャツです。</p>
      <p class="card__text -number">&yen; 15,000</p>
    <div class="card__footer">
      <p class="card__text"><a href="#" class="button -compact">正義Tシャツの詳細を見る</a></p>


                * {
  margin: 0;
  padding: 0;

body {
  background-color: #eee;
  line-height: 1.5;

img {
  max-width: 100%;
  vertical-align: bottom;

.l-wrapper {
  margin: 3rem auto;
  width: 320px;

.card {
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .16);
  color: #212121;
  text-decoration: none;

.card__header {
  display: flex;

  flex-wrap: wrap;

.card__title {
  padding: 1rem 1rem 0;
  font-size: 1.25rem;
  order: 1;

.card__thumbnail {
  margin: 0;
  order: 0;

.card__image {
  width: 100%;

.card__body {
  padding: 1rem;

.card__text {
  font-size: .75rem;

.card__text + .card__text {
  margin-top: .5rem;

.card__text.-number {
  text-align: right;

.card__footer {
  padding: 1rem;
  border-top: 1px solid #ddd;

.button {
  display: inline-block;
  text-decoration: none;
  transition: background-color .3s ease-in-out;

.button.-compact {
  padding: .5rem 1rem;
  border-radius: .25rem;
  background-color: #26a69a;
  color: #fff;
  font-weight: bold;

.button.-compact:focus {
  background-color: #80cbc4;