cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

āš ļø This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div class=main id="main">
  <article class="tribute">
    <header class="tribute__name">
      <h1 class="tribute__name--header" id="title">Johnny Cash</h1>
      <h2 class="tribute__name--tagline">The Man in Black</h2>
    </header>
    <figure class="tribute__image" id="img-div">
      <img src="http://res.cloudinary.com/dcs8kyezs/image/upload/v1517251153/JohnnyCash_c1969_hdd4gz.png" alt="Johnny in 1969" id="image">
      <figcaption class="tribute__image--caption" id="img-caption">Johnny Cash, circa 1969
        <div class="tribute__image--photocredit">credit: Michael Ochs Archives/Getty Images</div>
      </figcaption>
    </figure>
    <header class="tribute__timeline" id="tribute-info">
      <h3 class="tribute__timeline--header">Important moments in Johnny Cash&#8217;s life and career</h3>
    </header>
    <dl class="tribute__timeline--story">
      <dt class="tribute__timeline--year">1932</dt>
      <dd class="tribute__timeline--detail">Born on February 26 in Kingsland, AR</dd>
      <dt class="tribute__timeline--year">1935</dt>
      <dd class="tribute__timeline--detail">Family moved to a 20-acre cotton farm in northeast AR. During his youth, Johnny learned to play the guitar and was influenced by folk songs, hymns, work songs, Irish and gospel music, as well as the realities of life during the Great Depression</dd>
      <dt class="tribute__timeline--year">1950</dt>
      <dd class="tribute__timeline--detail">Enlisted in the U.S. Air Force and was stationed in Germany as a Morse Code operator</dd>
      <dt class="tribute__timeline--year">1954</dt>
      <dd class="tribute__timeline--detail">Married his first wife, Vivian Liberto; they had four children and, in 1966, were divorced as a result of Johnny&#8217;s addition to prescription drugs and alcohol</dd>
      <dt class="tribute__timeline--year">Mid-1950s to mid-1960s</dt>
      <dd class="tribute__timeline--detail">Recorded many hit songs, including <i>I Walk the Line, Ring of Fire, The Ballad of Ira Hayes</i>, and <i>Understand Your Man</i>. Made appearances on The Ed Sullivan Show and The Tonight Show and performed more than 200 shows a year</dd>
      <dt class="tribute__timeline--year">1968</dt>
      <dd class="tribute__timeline--detail">Overcame drug addiction with the help of his singing partner, June Carter; they married in 1968 and their son was born in 1970</dd>
      <dt class="tribute__timeline--year">Late-1960s to early-1990s</dt>
      <dd class="tribute__timeline--detail">Recorded more hit songs, including <i>Folsum Prison Blues, Jackson, A Boy Named Sue</i>, and <i>Man in Black</i>, and received major honors, including multiple Grammys, and induction into the Country Music Hall of Fame and the Rock and Roll Hall
        of Fame. He also became part of The Highwaymen with Willie Nelson, Waylon Jennings, and Kris Kristofferson</dd>
      <dt class="tribute__timeline--year">Mid-1990s to late-2002</dt>
      <dd class="tribute__timeline--detail">Became known to a new generation of fans through a partnership with producer Rick Rubin and collaborations with, among others, Tom Petty and U2; three of five <i>American Recordings</i> albums were released and included covers of songs by Depeche
        Mode, Nine Inch Nails, and Neil Diamond</dd>
      <dt class="tribute__timeline--year">2003</dt>
      <dd class="tribute__timeline--detail">Passed away on September 12 in Nashville, TN, due to complications of diabetes (four months after June&#8217;s passing). The final two <i>American Recordings</i> albums were released posthumously</dd>
    </dl>
    <aside class="tribute__blockquote">
      <p class="tribute__blockquote--quote">&#8220;I wear the black for the poor and the beaten down,
        <br>Livin&#8217; in the hopeless, hungry side of town...
        <br>I wear it for the sick and lonely old...
        <br>For the reckless ones whose bad trip left them cold...
        <br>&#8217;Til things are brighter, I&#8217;m the Man in Black.&#8221;
      </p>
      <p class="tribute__blockquote--citation">ā€” Johnny Cash, excerpts from lyrics of
        <div class="tribute__blockquote--cite" id="cite"> Man in Black</div>
      </p>
    </aside>
    <div class="tribute__moreinfo">
      <p>Learn more about Johnny Cash&#8217;s life,
        <br>music and legacy at <a href="http://www.johnnycash.com" target="_blank" id="tribute-link">johnnycash.com</a></p>
    </div>
  </article>
</div>
<hr class="style13">
<footer class="tribute__footer">
  Written and coded by Janice Medina, January 2018.
</footer>
            
          
!
            
              @import url("https://fonts.googleapis.com/css?family=Lato:400i,700,700i");
@import url("https://fonts.googleapis.com/css?family=Martel:400,600,700");

.main {
  width: 100vw;
  font-size: 18.5px;
  font-family: Martel, serif;
  box-sizing: border-box;
  margin-bottom: 50px;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.tribute {
  width: max-width;
  background-color: rgba(57, 57, 57, 0.11);
  border-radius: 6px;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

/* header group */

.tribute__name {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.tribute__name--header {
  font-family: "Lato", sans-serif;
  font-size: 325%;
  margin: 10px auto;
}

.tribute__name--tagline {
  font-family: "Lato", sans-serif;
  font-style: italic;
  font-size: 200%;
  margin-top: 5px;
}

/* image and credit byline */

.tribute__image {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  background-color: white;
  border-radius: 4px;
}

.tribute__image img {
  border: 2px solid black;
  margin: 20px 25px 5px;
  max-width: 100%;
}

.tribute__image--caption {
  font-size: 17px;
  display: inline-flex;
  align-self: center;
  font-weight: bold;
  padding-bottom: 10px;
}

.tribute__image--photocredit {
  font-size: 12px;
  font-weight: normal;
  padding-left: 30px;
  padding-bottom: 3.7px;
  align-self: flex-end;
}

/* timeline */

.tribute__timeline--header {
  font-family: "Lato", sans-serif;
  font-size: 150%;
  padding-top: 5px;
  margin-bottom: -5px;
}

.tribute__timeline--story {
  width: 550px;
  margin-left: -5px;
}

.tribute__timeline--year {
  font-size: 120%;
  font-weight: bold;
  padding-left: 3px;
}

.tribute__timeline--detail {
  padding-bottom: 15px;
  margin-left: 28px;
}

/* blockquote */

.tribute__blockquote {
  width: 500px;
  background: rgb(211, 211, 211);
  padding: 0 15px 0 25px;
  box-shadow: 10px 5px 5px #585656;
}

.tribute__blockquote--quote {
  font-family: "Lato", sans-serif;
  font-style: italic;
  font-weight: bold;
  font-size: 115%;
  line-height: 1.5;
  margin-bottom: 0;
}

.tribute__blockquote--citation {
  font-family: "Lato", sans-serif;
  color: #4a4848;
  display: inline-flex;
  padding-right: 5px;
  margin-bottom: 10px;
}

.tribute__blockquote--cite {
  display: inline-flex;
}

#cite {
  font-family: "Lato", sans-serif;
  color: #4a4848;
  font-style: italic;
}

/* link to fan website */

.tribute__moreinfo {
  margin: 30px 0;
  line-height: 1.5;
  font-size: 140%;
}

/* hr.style13 I.Jabbari - CodePen */

.style13 {
  height: 10px;
  border: 0;
  box-shadow: 0 10px 10px -10px #8c8b8b inset;
}

.tribute__footer {
  margin-bottom: 25px;
  text-align: center;
}

            
          
!
999px
šŸ•‘ One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console