Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <section class="container">
  <div class="bubble right">
    <img src="https://images.unsplash.com/photo-1621508654686-809f23efdabc?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYyMTcwMjcyOQ&ixlib=rb-1.2.1&q=85&w=800" alt="Picture of a beach" />
  </div>

  <div class="bubble right">
    <p>Marzipan topping cotton candy dessert cookie chupa chups candy canes. Lemon drops tootsie roll gummies bonbon tart.</p>
  </div>
  
  <div class="bubble left">
    <img src="https://images.unsplash.com/photo-1621338878752-1d2e42f0d0e4?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYyMTcwMzY3MA&ixlib=rb-1.2.1&q=85&w=800" alt="Moutain covered with snow" />
  </div>


  <div class="bubble left">
    <p>Cotton candy bear claw gummies. Carrot cake marzipan candy. Sesame snaps wafer icing icing powder bear claw macaroon candy.</p>
  </div>
  
  <div class="bubble left">
    <p>Check below how it's done.</p>
  </div>
  
  <div class="how">
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAA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AAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0AAQAAshEgAABANgIEAADIRoAAAADZCBAAACAbAQIAAGQjQAAAgGwECAAAkI0A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p2Wj9c75985Ks0gXIzepBEl+Qz6YPYqTxPxzvV+Yf7wdI7N+Y7eycvNbVMTnT2zM607dldLq/d3Rq+9bRiw8cqFlaBQBAmXReGO/ZcvzEQM/J0wOdYxOVrnNjA/HrHZeuVNqmp3vapmd64uMFATK64FG76fGjtiZfCv6b2VSpD8A/O1Mfh8fkQYzX2z4Ym6fGjMn8OD5+r1Z/OzyV0nf3tqXh/w86kaWsF3CAvAAAAABJRU5ErkJggg==" alt="">
  </div>
</section>
              
            
!

CSS

              
                $radius: 25px;
.bubble {
  mask-image:
    radial-gradient(#fff ($radius - 0.5), #fff0 $radius), // Top left corner
    radial-gradient(#fff ($radius - 0.5), #fff0 $radius), // Top right corner
    radial-gradient(#fff ($radius - 0.5), #fff0 $radius), // Bottom left corner
    radial-gradient(#fff ($radius - 0.5), #fff0 $radius), // Bottom right corner
    linear-gradient(#fff, #fff), // Horizontal gradient
    linear-gradient(#fff, #fff), // Vertical gradient
    url('data:image/svg+xml;utf8,<svg width="39" height="25" viewBox="0 0 39 25" xmlns="http://www.w3.org/2000/svg"><path d="M38.4998 24.5C27.6998 22.1 22.9998 7.5 21.9998 0.5C11.8331 1.83333 -6.30022 6.3 2.49978 13.5C13.4998 22.5 21.9998 24.5 38.4998 24.5Z" /></svg>'); // Bottom right icon
  mask-position: 
    0 0, // Top left corner
    100% 0, // Top right corner
    0 100%, // Bottom left corner
    100% 100%, // Bottom right corner
    0 $radius, // Horizontal gradient
    $radius 0, // Vertical gradient
    100% 100%; // Bottom right icon
  mask-size:
    ($radius * 2) ($radius * 2),  // Top left corner  
    ($radius * 2) ($radius * 2),  // Top right corner  
    ($radius * 2) ($radius * 2),  // Bottom left corner  
    ($radius * 2) ($radius * 2),  // Bottom right corner  
    100% calc(100% - #{$radius * 2}),  // Horizontal gradient  
    calc(100% - #{$radius * 2}) 100%,  // Vertical gradient 
    (39px / 2) (25px / 2); // Bottom right icon
  mask-repeat: no-repeat;
  margin-bottom: 15px;
  max-width: 60%;
  width: fit-content;
  font-size: 0; // Prevent white space under the images
  @media (max-width: 600px) {
    max-width: 80%;
  }
  
  &.right {
    margin-left: auto;
    background: #549EF5;
    color: white;
  }
  &.left {
    background: #E9E9EB;
    mask-image:
    radial-gradient(#fff, #fff ($radius - 0.5), transparent $radius), // Top left radius
    radial-gradient(#fff, #fff ($radius - 0.5), transparent $radius), // Top right radius
    radial-gradient(#fff, #fff ($radius - 0.5), transparent $radius), // Bottom left radius
    radial-gradient(#fff, #fff ($radius - 0.5), transparent $radius), // Bottom right radius
    linear-gradient(#fff, #fff), // Horizontal gradient
    linear-gradient(#fff, #fff), // Vertical gradient
    url('data:image/svg+xml;utf8,<svg width="39" height="24" viewBox="0 0 39 24" xmlns="http://www.w3.org/2000/svg"><path d="M0.000217438 24C10.8002 21.6 15.5002 7 16.5002 0C26.6669 1.33333 44.8002 5.8 36.0002 13C25.0002 22 16.5002 24 0.000217438 24Z" /></svg>'); // Bottom left icon
  mask-position: 
    0 0, // Top left radius
    100% 0, // Top right radius
    0 100%, // Bottom left radius
    100% 100%, // Bottom right radius
    0 $radius, // Horizontal gradient
    $radius 0, // Vertical gradient
    0 100%; // Bottom right icon
  }
  
  img {
    max-width: 100%;
  }
  
  p {
    position: relative;
    font-size: 18px;
    line-height: 1.2;
    font-family: sans-serif;
    padding: 15px 15px;
    margin: 0;
    letter-spacing: 0.02em;
    @media (max-width: 600px) {
      font-size: 16px;
    }
  }
}

body {
  background: #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 20px 10px;
}

.container {
  background: white;
  padding: 25px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 100px rgba(0,0,0,0.2);
}
img {
  max-width: 100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console