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

              
                <body>
   <main id="main">
     <div class="container">
       <header id="tribute-info">
       <h1 id="title">Friends: the reunion</h1>
       <p>Over the past 17 years, the details of the classic series final could have been forgotten.To the release of the Friends the reunion let`s remember how the original series ended.</p>
       </header>
       
       <figure id="img-div">
         <img src="https://mlpnk72yciwc.i.optimole.com/cqhiHLc.WqA8~2eefa/w:auto/h:auto/q:75/https://bleedingcool.com/wp-content/uploads/2021/05/unnamed-33.jpg" alt="Friends Poster" id="image"> 
         <figcaption id="img-caption">
            An unscripted Friends reunion special poster.
         </figcaption>
       </figure>
       <hr>
       
       <article class="tribute-info">
         <h2>Ross and Rachel finally together</h2>
         <img src="https://i.pinimg.com/originals/b4/51/2b/b4512b9601465980ec326c1029058bb2.jpg" alt="Ross and Rachel hug" class="pic">
        <p>The story of the relationship between Ross Geller <span>(David Schwimmer)</span> and Rachel Green <span>(Jennifer Aniston)</span> began in the first episode of "Friends" and logically ended in the last - 236. For 10 years, the heroes hid mutual sympathy, confessed their love, parted, hurt each other and even hated each other. In the final, however, they still ended up together

 In the eighth season, Rachel confessed to friends that she was pregnant, but refused to reveal the name of the child's father. It turned out to be Ross. At the end of the season, Rachel and Ross had a daughter, Emma. The heroes converged again in the final episode of the series: Rachel decided to leave her new job in Paris and stay in New York with Ross.</p>
       </article>
       
       <article class="tribute-info">
         <h2>Monica and Chandler adopted twins</h2>
         <img src="https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/friends-monica-chandler-twins-1548240880.png?resize=480:*" alt="Chandler and Monica with twins" class="pic small">
         <p>For the first 4 seasons, Monica Geller <span>(Courteney Cox)</span> and Chandler Bing <span>(Matthew Perry)</span> were separately looking for life partners. Chandler dated a strange girl Janice <span>(Maggie Wheeler)</span>, and Monica met eye doctor Richard <span>(Tom Selleck)</span>, a friend of her parents, But Janice cheated on Chandler with her ex-husband, and Richard made it clear that he did not want to have children, and for Monica this became a reason to disperse.

In the fifth season during the trip of friends to Ross and Emily's wedding in London, they woke up in the same bed. Chandler and Monica decided not to be limited to one night and continued their relationship, and then began to live together. In the seventh season, they got married and decided to adopt.

The couple decided to become parents for the child of a young girl Erica <span>(Anna Faris)</span> from Ohio, who accidentally became pregnant and was not ready to become a single mother. Erica gave birth in the last episode of season 10 - however, not one child, but twins, which came as a surprise to everyone, including Erica herself. In the finale, they moved from an apartment in New York to a large house in the suburbs.</p>
       </article>
       
       <article class="tribute-info">
         <h2>Phoebe married Mike</h2>
         <img src="https://hips.hearstapps.com/cosmouk.cdnds.net/16/36/2560x1280/landscape-1473080903-gettyimages-170769155.jpg?resize=1200:*" alt="Phoebe and Mike marriage" class="pic phoebe">
         <p>The story of Phoebe Buffet <span>(Lisa Kudrow)</span> was full of tragic moments, despite this she maintained a positive attitude and was one of the funniest in the company of friends. Last season she found her by accepting a marriage proposal from Mike Hannigan <span>(Paul Rudd)</span> - a guy from a rich family, whom Joey accidentally introduced to Phoebe, who forgot to find a mate for Phoebe during their double date.

It was marriage that played an important role in the history of the heroine. In season 10, she finally found a loved one and was able to forget about her difficult youth.</p>
       </article>
       
       <article class="tribute-info">
         <h2>Joey Tribbiani aka dr. Drake Ramorey</h2>
         <img src="https://www.tvguide.com/a/img/catalog/provider/10/8/10-E4BB2FAE-57BC-4840-A203-F48240850CDC.jpg" alt="Joey tv series cast" class="pic small">
         <p>Joey Tribbiani <span>(Matt LeBlanc)</span> dreamed of becoming a famous actor.
And if Joey did not have a stable relationship by the end of Friends, then his career did work out. In the second season, he got an important role in the popular American soap opera "Days of Our Lives", but in the same season his character was killed by the writers, angry at Joe's words that he was writing his own lines. In the seventh season, Joe managed to return to "Days of Our Lives" - after his character was resurrected through a brain transplant.

After that, Joey managed to star in several feature films and small series. And after the completion of "Friends", as we know from the spin-off "Joey", the hero went from New York to Los Angeles to his sister to conquer Hollywood and had a serious relationship with a woman</p>
       </article>
       <hr>
       
       <article class="tribute-info">
         <h3>Gallery</h3>
        <iframe class="video" width="560" height="315" src="https://www.youtube.com/embed/VvKlM51Rgeo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
       </article>
       
       <footer>
         <h3>For more information about special episode and  cast visit <a href="https://www.imdb.com/title/tt11337862/?ref_=ttmi_tt" target="_blank" id="tribute-link">Friends:The Reunion imdb page</a></h3>
       </footer>
     </div>
   </main>
</body>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
h1 {
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 2.8rem;
  margin-top: 20px;
  text-transform: uppercase;
}
.container {
  background: #eee;
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
#img-caption {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}
#tribute-info {
  background: #eee;
}
p {
  color: #3a3a3a;
  text-align: justify;
  line-height: 1.6rem;
}
#tribute-info p {
  text-align: center;
}
.tribute-info h2 {
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 2rem;
  text-align: center;
}
.tribute-info h3 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 2rem;
  text-align: center;
  text-transform: uppercase;
}
/*
article .pic {
  display: block;
  max-width: 800px;
  min-width: 800px;
  margin: 0 auto;
}
  */

article .small {
  min-width: 800px;
}
article .phoebe {
  max-width: 800px;
}

span {
  font-weight: bold;
}
.video {
  margin: 0 auto;
  display: block;
  width: 60%;
}
footer h3 {
  text-align: center;
  padding-bottom: 10px;
}
a {
  text-decoration: none;
}
a:hover {
  border-bottom: 1px solid black;
}

/*  Responsive Starts Here  */

@media all and (max-width: 1050px) {
  img {
    width: 100%;
  }
  article .small {
    min-width: 200px;
  }
  .video {
    width: 70%;
  }
}

@media all and (max-width: 800px) {
  .video {
    width: 80%;
  }
  .container {
    max-width: 90%;
  }
  .tribute-info h3 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  footer h3 {
    line-height: 1.5rem;
  }
  #img-caption {
    margin-bottom: 1.25rem;
    margin-top: 1rem;
  }
  h1 {
    margin-bottom: 1rem;
    margin-top: 1rem;
  }
}

@media all and (max-width: 500px) {
  .video {
    width: 100%;
  }
}

@media all and (max-width: 400px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  h1 {
    font-size: 2.2rem;
  }
  article p {
    font-size: 1.125rem;
  }
  header p {
    line-height: 1.2rem;
  }
}

@media all and (max-width: 300px) {
  .tribute-info h2, tribute-info h3 {
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
  }
}


              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console