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

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

              
                <div class="container">

  <br>

  <p>
    <strong>
    Scroll down to view lazy-loaded iframe, please.
    </strong>
  </p>

  <p>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae sequi velit ipsum inventore eligendi maiores numquam doloribus saepe. Aliquam modi eligendi non iure explicabo quis molestias voluptatum quam omnis voluptas.
  </p>  
  
  <p>
    Lorem ipsum dolor sit amet consectetur, adipisicing elit. Esse aliquam repellat et nihil autem distinctio quibusdam eius, tenetur laudantium. Minus ratione neque velit qui porro fuga quos atque voluptatem amet.
  </p>  
  
  <p><img src="http://satyr.io/5000x5000/grey?text=IMG" class="img-fluid"></p>  
  
  <p>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Cupiditate eius rem accusamus omnis eligendi eveniet perspiciatis beatae neque cum dolor corrupti esse reprehenderit iure voluptas, consequuntur ea cumque et tempora.
  </p>  
  
  <p>
    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Unde sint officiis natus repellat! Asperiores, quo quibusdam. Aspernatur vero quasi culpa aperiam saepe distinctio harum qui dicta vel, dolore asperiores quos!
  </p>   
  
  <p>
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eum voluptates deleniti earum reiciendis nesciunt quam tenetur explicabo, labore sit enim ex suscipit dolore quo vel aperiam, fugit deserunt ad voluptatem?
  </p>
  
  <p><img src="http://satyr.io/5000x5000/grey?text=IMG" class="img-fluid"></p>     
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>  
  
  <p><img src="http://satyr.io/5000x5000/grey?text=IMG" class="img-fluid"></p>    
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>  
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>  
  
  <p><img src="http://satyr.io/5000x5000/grey?text=IMG" class="img-fluid"></p>    
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>    
  
  <p>
    <strong>The following video is lazy-loaded:</strong>
  </p>  
  
  <div class="embed-responsive embed-responsive-16by9">
    <iframe loading="lazy" width="560" height="315" src="https://www.youtube.com/embed/caxfm0jO7uY" frameborder="0"  allowfullscreen></iframe>  
  </div>
  
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>    

  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Placeat rem adipisci commodi veritatis dicta quod deleniti, aliquam voluptatem delectus. Accusantium corporis eos pariatur officia iste repudiandae rem dolore! Illum, aperiam?
  </p>      
    
</div>  
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console