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

              
                <h1>Click to toggle!</h1>
<div class="table">
  <section>
    <details class="card">
      <summary class="property lightblue">
        <span class="eyebrow">title deed</span>
        Oriental Ave.
      </summary>
      <p class="rent">rent $6.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 30.</div>
        <div class="qty">with 2 houses</div><div class="price">90.</div>
        <div class="qty">with 3 houses</div><div class="price">270.</div>
        <div class="qty">with 4 houses</div><div class="price">400.</div>
      </div>
      <p class="hotel">With HOTEL $550.</p>
      <p class="mortgage">Mortgage value $50.</p>
      <p class="houses">Houses cost $50. each</p>
      <p class="hotelCost">Hotels, $50. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>

    <details class="card">
      <summary class="property lightblue">
        <span class="eyebrow">title deed</span>
        Vermont Ave.
      </summary>
      <p class="rent">rent $6.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 30.</div>
        <div class="qty">with 2 houses</div><div class="price">90.</div>
        <div class="qty">with 3 houses</div><div class="price">270.</div>
        <div class="qty">with 4 houses</div><div class="price">400.</div>
      </div>
      <p class="hotel">With HOTEL $550.</p>
      <p class="mortgage">Mortgage value $50.</p>
      <p class="houses">Houses cost $50. each</p>
      <p class="hotelCost">Hotels, $50. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>

    <details class="card">
      <summary class="property lightblue">
        <span class="eyebrow">title deed</span>
        Connecticut Ave.
      </summary>
      <p class="rent">rent $8.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 40.</div>
        <div class="qty">with 2 houses</div><div class="price">100.</div>
        <div class="qty">with 3 houses</div><div class="price">300.</div>
        <div class="qty">with 4 houses</div><div class="price">450.</div>
      </div>
      <p class="hotel">With HOTEL $600.</p>
      <p class="mortgage">Mortgage value $60.</p>
      <p class="houses">Houses cost $50. each</p>
      <p class="hotelCost">Hotels, $50. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>
  </section>

  <section>
    <details class="card">
      <summary class="property yellow">
        <span class="eyebrow">title deed</span>
        Atlantic Ave.
      </summary>
      <p class="rent">rent $22.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 110.</div>
        <div class="qty">with 2 houses</div><div class="price">330.</div>
        <div class="qty">with 3 houses</div><div class="price">800.</div>
        <div class="qty">with 4 houses</div><div class="price">975.</div>
        <div class="c"></div>
      </div>
      <p class="hotel">With HOTEL $1150.</p>
      <p class="mortgage">Mortgage value $130.</p>
      <p class="houses">Houses cost $150. each</p>
      <p class="hotelCost">Hotels, $150. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>

    <details class="card">
      <summary class="property yellow">
        <span class="eyebrow">title deed</span>
        Ventnor Ave.
      </summary>
      <p class="rent">rent $22.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 110.</div>
        <div class="qty">with 2 houses</div><div class="price">330.</div>
        <div class="qty">with 3 houses</div><div class="price">800.</div>
        <div class="qty">with 4 houses</div><div class="price">975.</div>
      </div>
      <p class="hotel">With HOTEL $1150.</p>
      <p class="mortgage">Mortgage value $130.</p>
      <p class="houses">Houses cost $150. each</p>
      <p class="hotelCost">Hotels, $150. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>

    <details class="card">
      <summary class="property yellow">
        <span class="eyebrow">title deed</span>
        Marvin Gardens
      </summary>
      <p class="rent">rent $24.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 120.</div>
        <div class="qty">with 2 houses</div><div class="price">360.</div>
        <div class="qty">with 3 houses</div><div class="price">850.</div>
        <div class="qty">with 4 houses</div><div class="price">1025.</div>
      </div>
      <p class="hotel">With HOTEL $1200.</p>
      <p class="mortgage">Mortgage value $140.</p>
      <p class="houses">Houses cost $150. each</p>
      <p class="hotelCost">Hotels, $150. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>


  </section>

  <section>
    <details class="card">
      <summary class="property darkblue">
        <span class="eyebrow">title deed</span>
        Park Place
      </summary>
      <p class="rent">rent $35.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 175.</div>
        <div class="qty">with 2 houses</div><div class="price">500.</div>
        <div class="qty">with 3 houses</div><div class="price">1100.</div>
        <div class="qty">with 4 houses</div><div class="price">1300.</div>
      </div>
      <p class="hotel">With HOTEL $1500.</p>
      <p class="mortgage">Mortgage value $175.</p>
      <p class="houses">Houses cost $200. each</p>
      <p class="hotelCost">Hotels, $200. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>

    <details class="card">
      <summary class="property darkblue">
        <span class="eyebrow">title deed</span>
        Boardwalk
      </summary>
      <p class="rent">rent $50.</p>
      <div class="priceTable">
        <div class="qty">with 1 house</div><div class="price">$ 200.</div>
        <div class="qty">with 2 houses</div><div class="price">600.</div>
        <div class="qty">with 3 houses</div><div class="price">1400.</div>
        <div class="qty">with 4 houses</div><div class="price">1700.</div>
      </div>
      <p class="hotel">With HOTEL $2000.</p>
      <p class="mortgage">Mortgage value $200.</p>
      <p class="houses">Houses cost $200. each</p>
      <p class="hotelCost">Hotels, $200. plus 4 houses.</p>
      <p class="disclaimer">If a player owns ALL the Lots of any Color-Group, the<br/>rent is Doubled on Unimproved Lots in that group.<br/>&copy;1935 Hasbro, Inc.</p>
    </details>
  </section>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Balthazar|Nunito:300');

body {
  background: #eceff1;
}

h1 {
	text-align: center;
	font-family: 'Balthazar', serif;
	letter-spacing: 2px;
}
p {
  margin: 2px 0;
}

.table {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.card {
  width: 340px;
  max-height: 460px; 
  border: 1px solid #222;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  margin: 10px;
  box-shadow: 0 0 8px rgba(43,47,62,.1);
  transition: 1s all ease;
}

.property {
  border: 2px solid #222;
  text-align: center;
  text-transform: uppercase;
  padding: 5px;
  font-size: 28px;
  letter-spacing: 1px;
  font-family: 'Balthazar', serif;
  font-weight: 400;
  cursor: pointer;
  outline: none;
  transition: 1s all ease;
}

.yellow { background: #f8f218; }
.lightblue { background: #c1dced; }
.darkblue { background: #317cd5; }

.eyebrow {
  display: block;
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

summary {
	list-style: none;
}

summary::-webkit-details-marker,
summary::marker {
  display: none;
}

.rent {
  text-transform: uppercase;
  margin-top: 10px;
}

.priceTable {
  width: 70%;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  
}

.priceTable .qty,
.priceTable .price { 
  width: 50%;
}

.priceTable .qty {
  text-transform: capitalize;
  text-align: left;
}

.priceTable .price {
  text-align: right;
}

.hotel {
  margin-top: 5px;
}

.disclaimer {
  font-size: 10px;
  margin: 10px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console