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

              
                <body>
<div class="container">  
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta1174m.jpg" alt="Christmas">
  <div class="card-content">
    <h1 class="card-title">12月の風景</h1>
    <p class="card-text">イルミネーションが綺麗な12月。</p>
  </div>
</section>
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta0018m.jpg" alt="Effel tower">
  <div class="card-content">
    <h1 class="card-title">エッフェル塔</h1>
    <p class="card-text">フランスの名所、エッフェル塔。夜景ももちろん綺麗。</p>
  </div>
</section>
  
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta1188m.jpg" alt="tokyo millenario">
  <div class="card-content">
    <h1 class="card-title">東京ミレナリオ</h1>
    <p class="card-text">一旦の休止を経て今は東京ミチテラスとして開催</p>
  </div>
</section>
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta1185m.jpg" alt="tonakai">
  <div class="card-content">
    <h1 class="card-title">電飾のトナカイ</h1>
    <p class="card-text">クリスマス時期にふさわしい電飾</p>
  </div>
</section>
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta0863m.jpg" alt="fountain">
  <div class="card-content">
    <h1 class="card-title">夜の噴水</h1>
    <p class="card-text">夜の噴水はやっぱり綺麗</p>
  </div>
</section>
 <section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta0712m.jpg" alt="million dallar">
  <div class="card-content">
    <h1 class="card-title">100万ドルの夜景</h1>
    <p class="card-text">有名な100万ドルの夜景。</p>
  </div>
</section>
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta2559m.jpg" alt="sidewalk">
  <div class="card-content">
    <h1 class="card-title">歩道</h1>
    <p class="card-text">夜になると歩道でさえも名所になる。</p>
  </div>
</section>
<section class="card">
  <img class="card-img" src="https://www.futta.net/photom/futta1189m.jpg" alt="tokyo tower">
  <div class="card-content">
    <h1 class="card-title">東京タワー</h1>
    <p class="card-text">エッフェル塔にも引けを取らない。</p>
  </div>
</section>
  

</div>
</body>
              
            
!

CSS

              
                body{
  background:pink;
}
.container {
  display: flex;
  flex-wrap: wrap;
}
.card {
  width: 20%;
  height:100%;
  background: #fff;
  border-radius: 8%;
  box-shadow: 10px 10px 10px #ccc;
  margin-right:5%;
  margin-bottom:5%;
  transition-duration: 0.4s;
  filter: grayscale(100%);
}
.card-img{
  border-radius: 8% 8% 0 0;
  max-width: 100%;
  height: auto;
}
.card-content{
  padding: 5%;
}
.card-title{
  font-size: 120%;
  margin-bottom: 10px;
  text-align: center;
  color: #333;
}
.card-text{
  color: #777;
  font-size: 80%;
}
.card:hover{
  transform:translateY(-5px);
  filter: grayscale(0%);
}
@media(max-width: 896px){
  .card{width:40%;}
  .card-title{font-size:50%;}
  .card-text{font-size:30%;}
}
              
            
!

JS

              
                
              
            
!
999px

Console