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

              
                <div class="container">
  <section>
    <div class="card">
      <div class="flex">
        <h2>Find out how much</h2>
        <img
          src="https://static.rdc.moveaws.com/images/finance/spot-badge-cash-reward.svg"
          width="48"
          height="48"
          alt=""
        />
      </div>
      <div class="content">
        We'll help you estimate your budget range. Save to your
        buyer profile to help in your search.
      </div>
      <div class="action">try it out</div>
    </div>
    <div class="card">
      <div class="flex">
        <h2>Understand your monthly costs</h2>
        <img
          src="https://static.rdc.moveaws.com/images/finance/spot-badge-cash-reward.svg"
          width="48"
          height="48"
          alt=""
        />
      </div>
      <div class="content">
        Get an in-depth look at what your monthly and closing
        costs will look like based on your financial situation and
        goals. Get an in-depth look at what your monthly and
        closing costs will look like based on your financial
        situation and goals.
      </div>
      <div class="action">try it out</div>
    </div>
    <div class="card">
      <div class="flex">
        <h2>
          Get help with your down payment Get help with your down
          payment
        </h2>
        <img
          src="https://static.rdc.moveaws.com/images/finance/spot-badge-cash-reward.svg"
          width="48"
          height="48"
          alt=""
        />
      </div>
      <div class="content">
        You may be able to buy a home with just 3.5% down. Saving
        for that can be challenging–down payment assistance
        programs can help. You may be able to buy a home with just
        3.5% down. Saving for that can be challenging–down payment
        assistance programs can help.
      </div>
      <div class="action">try it out</div>
    </div>
    <div class="card">
      <div class="flex">
        <h2>Understand your monthly costs</h2>
        <img
          src="https://static.rdc.moveaws.com/images/finance/spot-badge-cash-reward.svg"
          width="48"
          height="48"
          alt=""
        />
      </div>
      <div class="content">
        Get an in-depth look at what your monthly and closing
        costs will look like based on your financial situation and
        goals. Get an in-depth look at what your monthly and
        closing costs will look like based on your financial
        situation and goals.
      </div>
      <div class="action">try it out</div>
    </div>
  </section>
</div>
              
            
!

CSS

              
                section {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(200px, 100%), 1fr)
  );
  gap: 1rem;
  grid-template-rows: auto 1fr auto;
  
  max-width: 1280px;
  margin: 4rem auto 0;
}

.card {
  display: grid;
  border: 1px solid #cacaca;
  border-radius: 6px;
  padding: 16px;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 5px;
}

.flex {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #cacaca;
}

.flex h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

img {
  margin-left: auto;
}

.content {
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 1.5rem;
}

.action {
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  background-color: rgba(187, 184, 184, 0.9);
  gap: 20px;
}

.container {
  padding: 1rem;
  margin-top: 1rem;
}

* {
  box-sizing: border-box;
}

body,
html {
  height: 100vh;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0 auto;
}

              
            
!

JS

              
                
              
            
!
999px

Console