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

              
                <article class="wrapper">
 <div class="content">
  <div class="column">
   <img loading="lazy" srcset="https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=100 100w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=200 200w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=400 400w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=800 800w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=1200 1200w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=1600 1600w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&width=2000 2000w, https://cdn.builder.io/api/v1/image/assets/TEMP/3a46a80e1eb9b65dbcdbaa1bb9262d253d2bb3fa7489fa7b524b0e6762d4b64c?apiKey=85240bc424d441a2819bd566dfa5305b&" class="img" />
  </div>
  <div class="column">
   <div class="text">
    <p class="top">
     Record a loom to add a personal touch to your messages
    </p>
    <p class="bottom">
     Add a personal touch to your communication by sending a Loom. Discover
     all the ways you can use Loom
     <a href="#">
      here.
     </a>
    </p>
   </div>
  </div>
  <div class="column">
   <button class="rec-btn">Record now</button>
  </div>
 </div>
</article>
              
            
!

CSS

              
                .wrapper {
 border-radius: 16px;
 border: 1px solid rgba(108, 102, 133, 0.2);
 max-width: 692px;
 padding-right: 16px;
 @media (max-width: 767px) {
  padding: 0.5rem;
 }
}

.content {
 gap: 20px;
 display: flex;
 justify-content: space-between;

 .column:nth-of-type(2) {
  width: 44%;
 }

 .column:first-child {
  padding: 0;
 }

 @media (max-width: 767px) {
  flex-direction: column;
  gap: 0px;
  .column:nth-of-type(2) {
   width: 100%;
  }
 }
}

.column {
 display: flex;
 flex-direction: column;
 line-height: normal;
 width: 28%;
 margin-left: 0px;
 padding: 16px 0;

 @media (max-width: 767px) {
  width: 100%;
 }
}

.img {
 aspect-ratio: 1.05;
 object-fit: contain;
 object-position: center;
 width: 168px;
 overflow: hidden;
 max-width: 100%;
 flex-grow: 1;
 border-top-left-radius: 16px;

 @media (max-width: 767px) {
  margin-top: 40px;
  border-radius: 0;
 }
}

.text {
 display: flex;
 flex-direction: column;
 margin: auto 0;

 p {
  margin-bottom: 0;
  letter-spacing: -0.1px;
 }

 .top {
  color: #212121;
  font: 500 14px/22px Inter, sans-serif;
 }

 .bottom {
  color: #6c6685;
  margin-top: 0.5rem;
  font: 400 14px/22px Inter, sans-serif;
 }

 a {
  color: #625df5;
 }

 @media (max-width: 767px) {
  margin-top: 40px;
 }
}

.rec-btn {
 all: unset;
 color: #fff;
 text-align: center;
 letter-spacing: -0.1px;
 white-space: nowrap;
 border-radius: 32px;
 background-color: #625df5;
 padding: 8px 16px;
 font: 500 13px/22px Inter, sans-serif;
 margin-top: auto;

 @media (max-width: 767px) {
  white-space: initial;
  margin-top: 40px;
 }
}

              
            
!

JS

              
                
              
            
!
999px

Console