Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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

              
                <section class= "tier tier-intro">
    <h1>Legendary Jazz Singers</h1>
    <p> A short list of some of the top vocal jazz artists of all time.</p>
</section>
<section class="tier tier-gallery">
  <ul class="grid">
    
    <li class="grid__item">
      <div class="card">
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/76301/ella_fitzgerald.jpg" alt="Ella Fitzgerald" />
        <article class="card__content">
          <h3 class="card__title">Ella Fitzgerald</h3>

          <div class="card__body">
            <p>Ella Jane Fitzgerald was an American jazz singer sometimes referred to as the First Lady of Song, Queen of Jazz, and Lady Ella. She was noted for her purity of tone, impeccable diction, phrasing, intonation, and a "horn-like" improvisational ability, particularly in her scat singing.</p>
          </div>
        </article>
      </div>
    </li>
<li class="grid__item">
      <div class="card">
            <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/76301/billie_holiday.jpg" alt="Billie Holiday" />

          <article class="card__content">
          <h3 class="card__title">Billie Holiday</h3>
          <div class="card__body">
            <p>Eleanora Fagan, professionally known as Billie Holiday, was an American jazz singer with a career spanning nearly thirty years. Nicknamed "Lady Day" by her friend and music partner Lester Young, Holiday had a seminal influence on jazz music and pop singing.</p>
          </div>
        </article>
      </div>
    </li>
    <li class="grid__item">
      <div class="card">         
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/76301/sarah_vaughn.jpg" alt="Sarah Vaughan" />
          </a>
      
        <article class="card__content">
          <h3 class="card__title">Sarah Vaughan</h3>
          <div class="card__body">
            <p>Sarah Lois Vaughan was an American jazz singer. Nicknamed "Sassy" and "The Divine One", she won four Grammy Awards, including the Lifetime Achievement Award. She was given an NEA Jazz Masters Award in 1989. Critic Scott Yanow wrote that she had "one of the most wondrous voices of the 20th century".</p>
          </div>
        </article>
      </div>
    </li>
    <li class="grid__item">
      <div class="card">
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/76301/mildred-bailey.jpg" alt="Mildred Bailey" />
          <article class="card__content">
          <h3 class="card__title">Mildred Bailey</h3>
          <div class="card__body">
            <p>Mildred Bailey was a Native American jazz singer during the 1930s, known as "The Queen of Swing", "The Rockin' Chair Lady" and "Mrs. Swing".</p>
          </div>
  
        </article>
      </div>
    </li>

    <li class="grid__item">
      <div class="card">
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/76301/lena_horne.jpg" alt="Lena Horne" />

          <article class="card__content">
          <h3 class="card__title">Lena Horne</h3>
          <div class="card__body">
            <p>Lena Mary Calhoun Horne was an American singer, dancer, actress, and civil rights activist. Horne's career spanned over 70 years, appearing in film, television, and theater. Horne joined the chorus of the Cotton Club at the age of 16 and became a nightclub performer before moving to Hollywood. </p>
          </div>
        </article>
      </div>
    </li>
<li class="grid__item">
      <div class="card">
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/76301/dinah_washington.jpg" alt="Dinah Washington" />

          <article class="card__content">
          <h3 class="card__title">Dinah Washington</h3>
          <div class="card__body">
            <p>Dinah Washington was an American singer and pianist, who has been cited as "the most popular black female recording artist of the '50s". Primarily a jazz vocalist, she performed and recorded in a wide variety of styles including blues, R&B, and traditional pop music, and gave herself the title of "Queen of the Blues". </p>
          </div>
        </article>
      </div>
    </li>
  </ul>
</section>
              
            
!

CSS

              
                article, aside, canvas, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

body {
  background-color:hsl(210, 20%, 85%);
  color:hsl(210, 10%, 25%);
}

img {
  width: 100%;
}

/* Grid layout for all card content */
@supports (display: grid) {

  .grid {
    display: grid;
    margin:0 auto;
    max-width: 1024px;
    padding: 0;
    list-style-type: none;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    grid-gap: 2rem;
  }
  
.tier {
    padding: calc(0.5em + 1vh) 0;
  }
  
.tier-intro {
	  text-align:center;
}


  @media screen and (min-width: 1024px) {
    .grid__item:first-child {
      grid-column: span 1;
    }
  }
}
  .card {
    background:white;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .card__image img {
    width: 100%;
    height: 250px;
    -o-object-fit: contain;
    object-fit: contain;
  }

  .card__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .card__title {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
  }

  .card__body {
    flex: 1;
  }

  .card__body p {
    font-size: 1em;
    line-height: 1.633em;
    margin-top: 0;
  }




              
            
!

JS

              
                
              
            
!
999px

Console