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


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


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.


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 lang="en">

  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link href="" rel="stylesheet" />
  <title>CSS Container Query</title>


  <div class="main-wrapper">
    <div class="wrapper">
      <div class="img-wrapper">
        <img src="" />
      <div class="info">
          The Super Mario series is one of the sub-series in the Mario series
          and is the best known and best-selling sub-series as well.
    <p class="notes">
      <b>NOTE:</b> Container Query only works in Google Chrome Canary, once
      you enable it.
      <a href="">CSS Container Query </a>



                body {
  font-family: "Baloo 2", cursive;

.main-wrapper {
  contain: layout inline-size style;

.wrapper {
  box-shadow: inset 2px 1px 8px #ccc;
  padding: 18px;
  width: 300px;
  margin: 2rem auto;
  border-radius: 20px;

.img-wrapper {
  width: 200px;
  margin: auto;

img {
  width: 100%;
  filter: drop-shadow(-1px -2px 2px black);

.notes {
  text-align: center;

@container (min-width: 800px) {
  .info {
    display: flex;

  h2 {
    margin-right: 25px;

  .notes {
    width: 75%;
    margin: 2rem auto;