css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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="container">
 <img
  srcset="https://freshman.tech/assets/dist/images/star-640.jpg 640w,
    https://freshman.tech/assets/dist/images/star-960.jpg 960w,
    https://freshman.tech/assets/dist/images/star-1200.jpg 1200w,
    https://freshman.tech/assets/dist/images/star-1440.jpg 1440w"
  sizes="(max-width: 799px) calc(100vw - 40px),
    (min-width: 800px) 800px"
  src="https://freshman.tech/assets/dist/images/star-960.jpg"
  alt="A star fish in water">
  
  <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga odio repudiandae corrupti eaque accusamus. Qui rem nesciunt provident exercitationem facilis!</p>
  <p>Deserunt facilis, dicta reiciendis quo nobis praesentium sequi consequuntur voluptas alias quis accusamus unde? Molestiae pariatur quibusdam a optio facere.</p>
  <p>Porro quae sequi omnis soluta rem? Veritatis nobis magni commodi nostrum repudiandae deleniti voluptatem laboriosam voluptatibus? Dolorum quibusdam laudantium corrupti.</p>
  <p>Sequi voluptas deleniti, repellat expedita nihil magni recusandae, molestiae reprehenderit, officiis at maxime. Ad placeat impedit molestiae quis nobis libero!</p>
  <p>Nisi excepturi ut id, numquam officiis, ab, beatae laudantium quidem molestias iste neque nobis architecto rerum. Laudantium illum provident explicabo!</p>
  <p>Unde autem iste corporis. Animi dolor perspiciatis corrupti ea voluptas voluptate quas sapiente! Animi nihil nisi officia maiores possimus cumque!</p>
  <p>Nam, possimus? Cupiditate fugit corporis est, aliquam ex tempore eaque quae omnis doloribus reiciendis ullam aspernatur eligendi dignissimos, quos nobis!</p>
  <p>Mollitia at sequi debitis odio alias ducimus itaque voluptates libero reprehenderit asperiores, totam dicta quod autem illo a, similique quibusdam?</p>
  <p>Ea itaque illum, nobis sed voluptatibus ratione eveniet id dolor mollitia est blanditiis nisi aliquam quam doloremque et delectus culpa?</p>
  <p>Eligendi atque culpa maiores blanditiis ut. Sint minima sit, magnam blanditiis distinctio nemo dignissimos architecto, explicabo labore odio, voluptates optio.</p>
  <p>Quisquam, atque? Fugiat sapiente blanditiis repellendus omnis necessitatibus laborum maiores doloribus laboriosam quidem voluptatibus tenetur, quisquam magnam. Optio, alias porro?</p>
  <p>Distinctio expedita facere officia cumque sit, quis, dolore illum tenetur deleniti blanditiis, quo harum nostrum quaerat deserunt. Laborum, nulla asperiores?</p>
  <p>Dolore placeat, est odit sunt rerum architecto, vel, voluptatum itaque reprehenderit nam dolores necessitatibus corrupti quae minima beatae hic iste!</p>
  <p>Autem distinctio architecto ipsam est reprehenderit dolore quam omnis repudiandae, natus alias ea quis unde accusantium nemo illum, quaerat mollitia?</p>
</div>
            
          
!
            
              html {
  box-sizing: border-box;
}

*,*::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  max-width: 800px;
}

img {
  max-width: 100%;
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}
            
          
!
999px
🕑 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.
Loading ..................

Console