cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

alt="Mars Curiosity Rover takes an excellent selfie."
     https://builtvisible.com/wp-content/uploads/2015/09/curiosity-large.jpg  1120w,
     https://builtvisible.com/wp-content/uploads/2015/09/curiosity-medium.jpg 720w,
     https://builtvisible.com/wp-content/uploads/2015/09/curiosity-small.jpg  400w"
     (min-width: 40em) calc(66.6vw - 4em) 
              /* Set box-sizing - ignore */
html {
  box-sizing: border-box;
*, *:before, *:after {
  box-sizing: inherit;

/* Layout For Smaller Screens */
img {
  display: block;
  margin: 0 auto 0 auto; /* Centred */
  width: 100%;

/* Layout For Larger Screens */
@media screen and (min-width: 40em) {
  img {
    padding: 0 2em 0 2em;
    width: 66.6%;
              // Demonstration of responsive image loading using srcset and sizes. Accompanying blog post here: https://builtvisible.com/responsive-images-for-busy-people-a-quick-primer/
Loading ..................