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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              <div class="airplanes">
      <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/C-FUKN-Northway-Aviation-DHC-3-Otter-2.jpg/600px-C-FUKN-Northway-Aviation-DHC-3-Otter-2.jpg">
   <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/A6-EDY_A380_Emirates_31_jan_2013_jfk_%288442269364%29_%28cropped%29.jpg/600px-A6-EDY_A380_Emirates_31_jan_2013_jfk_%288442269364%29_%28cropped%29.jpg">
        <span class="name">de Havilland Canada DHC-3 Otter</span> <span class="desc">The de Havilland Canada DHC-3 Otter is a single-engined, high-wing, propeller-driven, short take-off and landing (STOL) aircraft.</span>
        <span class="name">Airbus A380</span> <span class="desc">The Airbus A380 is the world's largest passenger airliner.</span>
     <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Icelandair_Fokker_F-27-200_Friendship_Wallner.jpg/600px-Icelandair_Fokker_F-27-200_Friendship_Wallner.jpg"> 
  <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Short_Stirling_bomber_N6101.jpg/600px-Short_Stirling_bomber_N6101.jpg">
        <span class="name">Fokker F27 Friendship</span> <span class="desc">The Fokker F27 Friendship is a turboprop airliner developed and manufactured by the Dutch aircraft manufacturer Fokker.</span>
        <span class="name">Short Stirling</span> <span class="desc">The Short Stirling was a British four-engined heavy bomber of WW2</span>
              * {box-sizing: border-box; }

body {
  background-color: rgb(192,181,129);

img {
  max-width: 100%;

figure, figcaption {
  margin: 0;

.airplanes {
  display: grid;
  column-gap: 2vw;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 30vh auto 30vh auto;

.airplanes img { 
  border-top: 5px solid #fff;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  border-top-left-radius: 2px ;
  border-top-right-radius: 6px;
  background-color: rgba(255,255,255,.6);
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: sepia(80%);

img:hover {
  filter: none;

.airplanes div  {
  font: 1rem 'Life Savers', cursive;
  display: flex;
  align-items: center;
  margin-bottom: 5vh;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  border-left: 5px solid #fff;
  background-color: rgba(255,255,255,.6);

.airplanes div > * {
  padding: .5rem;

 .name {
  font-weight: bold;
  font-size: 1.2rem;
  border-right: 1px solid rgba(0,0,0,.6);
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.