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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<main id="main">
  <h1 id="title">Leslie Calvin &ldquo;Les&rdquo; Brown</h1>
  <div class="short-disc">
    <ul>
      <li>Motivational Speaker</li>
      <li>Author</li>
      <li>Former Radio DJ</li>
      <li>Former Television Host</li>
      <li>Former member of the Ohio House of Representatives</li>
    </ul> 
  </div>  <!-- .short-disc ends -->
  <div class="tag-line">
    <p>It&rsquo;s not over untill you win!</p>
  </div>
  <figure id="img-div">
    <img 
      id="image"
src="https://upload.wikimedia.org/wikipedia/commons/9/91/Les_Brown_speaking.jpg"
      alt="Les brown speaking at atlanta georgia" 
      loading="lazy"
    />
    <figcaption id="img-caption">
      <em>Les Brown speaking in Atlanta, Georgia. on 2 July 2009 at 16:35</em>
    </figcaption>
  </figure>
  <section id="tribute-info">
    <div class="les-video">
      <iframe
        src="https://www.youtube.com/embed/gXuSMjrx_e8"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
        allowfullscreen>
      </iframe>
    </div>  <!-- #les-video ends -->
    <div class="about-les"> 
      <h3>About Les Brown</h3>
      <p>
        Les Brown is committed to motivating and training today’s generation to be achievers and leaders as he introduces new audiences every day to It’s Not Over Until You Win, Up Thoughts for Down Times and Fight For Your Dream. Les Brown’s audio series,“Choosing Your Future,” remains his all-time bestseller for its acclaimed impact worldwide.
      </p> 
      <blockquote 
        cite="https://lesbrown.com/upcoming-events">
        <p>&ldquo;Don’t let someone else’s opinion of you become your reality.&rdquo;</p>
        <cite>— Les Brown</cite>
      </blockquote>
    </div>  <!-- .about-les ends -->
    <div class="les-awards">
      <dl>
        <dt>Recognisions</dt>
        <dd>
          Brown received the National Speakers Association coveted Council of Peers Award of Excellence (CPAE), and ultimately, its most prestigious Golden Gavel Award for achievement and leadership in communication.
        </dd>
        <dd>Toastmasters International also voted him one of the Top Five Outstanding Speakers. Worldwide.</dd> 
        <dd>
          Over 20 years ago, he won a Chicago-area Emmy® for his unsurpassed fundraising pledge drive for the Public Broadcasting System. 
        </dd>
      </dl>
      <blockquote 
        cite="https://lesbrown.com/contact">
        <p>
          &ldquo;When life knocks you down, try to land on your back. Because if you can look up, you can get up. Let your reason get you back up.&rdquo;
        </p>
        <cite>— Les Brown</cite>
      </blockquote>
    </div>  <!-- .les-awards ends -->
    <div class="les-img">
      <img 
        src="https://content.web-repository.com/s/7946866139266271/uploads/Images/speaker-7164584.png" 
        class="flex-none" 
        alt="Les brown in a suit" 
        loading="lazy"
      />
    </div>  <!-- .les-img ends -->
  </section>
  <p>
    <a 
       id="tribute-link"
   href="https://en.wikipedia.org/wiki/Les_Brown_(speaker)" 
       target="_blank"
    >
    <em>Biography</em></a>&nbsp;of Les Brown a high-energy, world’s most renowned motivational speaker.</p>
</main>
              
            
!

CSS

              
                html{
  /* setting a base font size */
  font-size: 16px;
}

body{
  /* Native font stack from bootstrap */  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Main section */
#main {
  background-color: #f8f9fa;
  padding: 1rem;
}

blockquote{
  font-family: Georgia serif;
  border-left: 5px solid black;
  padding: 0 0 0 15px;
}

h1{
  font-family: serif;
  font-size: 68px;
  font-weight: 800;
}

iframe{
  border: 0;
  width: 100%;
  height: 315px;
}

#title{
  text-align: center;
  font-size: 3rem;
  margin: .5rem auto;
}

.short-disc ul{
  margin: 0 auto 1.4rem auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-family: Tahome serif;
  justify-content: space-evenly;
  align-items: center;
}
 
.short-disc ul li{
  padding: .3rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
}

.tag-line p{
  font-size: 2rem;
  font-weight: bold;
  font-family: Arial Monospace;
  text-align: center;
  letter-spacing: .3rem;
  margin: 0;
  padding: 1rem .5rem;
  background-color: #404040;
  color: white;
  text-transform: uppercase;
}

figure{
  margin: 0;
  padding: 0;
}

#img-caption{
  display: block;
  text-align: center;
  font-family: Monospace;
  font-weight: bold;
  margin: -0.5rem 0 auto 0;
  padding: 1rem .2rem 1rem .2rem;
  color: black;
  background-color: rgba(191, 191, 191, .3);
}

#img-div img{
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Artical section */
#tribute-info{
  display: flex;
  flex-wrap: wrap;
  margin: 2rem auto 2rem auto;
  align-items: center;
  justify-content: center;
}

.les-video{
  align-self: center;
  width: 100%;
}

.about-les p{
  text-align: justify! important;
  font-size: 1rem;
}

.les-awards{
  margin: 1rem 0 0 0;
}

.les-awards dl{
  margin: 0;
  padding: 0;
  text-align: justify;
}

.les-awards dt{
  margin: 0;
  padding: .3rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.les-awards dd{
  margin: 0;
  padding: .5rem;
}

.les-awards blockquote p{
  text-align: left! important;
}

.les-img img{
  display: block;
  max-width: 100%;
  height: auto;
}

#main p{
  text-align: center;
}

#tribute-link{
  text-decoration: none;
  background-color: white;
  border: 2px solid black;
  color: black;
  padding: 3px 7px;
  transition: all .5s ease;
}

#tribute-link:hover,
#tribute-link:focus{
  background-color: black;
  color: white;
}

/* Media queries */
@media (min-width: 786px) {
  .les-video, 
  .about-les,
  .les-awards,
  .les-img{
    width: 50%;
  }
  
  .about-les h3{
    margin: 0 0 .5rem 1rem;
  }
  
  .about-les p{
    margin: 0 0 0 1rem;
  }
  
  .about-les blockquote p{
    text-align:left! important;
    margin: auto auto auto 0;
  }
  
  .les-awards dl{
    margin: .5rem 0 0 -0.3rem;    
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console