css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>FCC - Tribute Page</title>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>

<body>
  <main id="main">
    
<!-- Landing Page -->
    <div id="landing">
    <div id="landing-text">
    <div id="landing-text-inner">
      <h1 id="title">Jackson Pollock</h1>
      <h2 id="subtitle">Abstract Expressionist (1912-1956)</h2>
    </div>
    </div>
    </div>
  
<!-- Image -->  
  <section id="sec1">
    <div id="img-div">
      <img id="image" src="https://wallector.com/media/mageplaza/brand/Jackson_Pollock.jpg">
      <figcaption id="img-caption">
        <em>Portrait of Jackson Pollock</em>
      </figcaption>
    </div>
  </section>
  
 <!-- Bio --> 
  <section id="sec2">
    <div id="tribute-info">
      <h2 id="bio-header">Biography</h2>
      <p class="bio" id="p1">Paul Jackson Pollock (/ˈpɒlək/; January 28, 1912 – August 11, 1956) was an American painter and a major figure in the abstract expressionist movement. He was well known for his unique style of drip painting.</p>
      <p class="bio" id="p2">During his lifetime, Pollock enjoyed considerable fame and notoriety; he was a major artist of his generation. Regarded as reclusive, he had a volatile personality, and struggled with alcoholism for most of his life. In 1945, he married the artist Lee Krasner, who became an important influence on his career and on his legacy.[1]</p>
      <p class="bio" id="p3">Pollock died at the age of 44 in an alcohol-related single-car accident when he was driving. In December 1956, four months after his death, Pollock was given a memorial retrospective exhibition at the Museum of Modern Art (MoMA) in New York City. A larger, more comprehensive exhibition of his work was held there in 1967. In 1998 and 1999, his work was honored with large-scale retrospective exhibitions at MoMA and at The Tate in London.[2][3]</p>
      <cite id="bio-cite">
        <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Jackson_Pollock">Learn more at wikipedia</a>
      </cite>
    </div>
  </section>
  
<!-- paintings -->
 <section id="sec3">
   <div id="collection-div">
    <div id= subtitle>
      <h2 id="collection-header">The Paintings of Jackson Pollock</h2>
    </div>
    <!-- Slideshow container -->
<div class="slideshow-container">

  <!-- Full-width images with number and caption text -->
  <div class="mySlides fade">
    <div class="numbertext">1 / 3</div>
    <img src="https://www.jackson-pollock.org/images/paintings/convergence.jpg" style="width:100%">
    <div class="text">Convergence, 1952</div>
  </div>

  <div class="mySlides fade">
    <div class="numbertext">2 / 3</div>
    <img src="https://www.jackson-pollock.org/images/paintings/mural.jpg" style="width:100%">
    <div class="text">Mural, 1943</div>
  </div>

  <div class="mySlides fade">
    <div class="numbertext">3 / 3</div>
    <img src="https://www.jackson-pollock.org/images/paintings/reflection-of-the-big-dipper.jpg" style="width:100%">
    <div class="text">Reflection of the Big Dipper, 1947</div>
  </div>

  <!-- Next and previous buttons -->
  <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
  <a class="next" onclick="plusSlides(1)">&#10095;</a>
</div>
<br>

<!-- The dots/circles -->
<div style="text-align:center">
  <span class="dot" onclick="currentSlide(1)"></span> 
  <span class="dot" onclick="currentSlide(2)"></span> 
  <span class="dot" onclick="currentSlide(3)"></span> 
</div>
</div>
  </div>
</section>
       
<!-- Contact -->
  <footer>
    <h3 class="foot-p"> <a href="https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-tribute-page/" target="_blank">Created as a FreeCodeCamp.com project</a></h3>
  </footer>
       </main>
</body>
</html>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');

body {
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
  background-color: #eee;
  height: auto;
}

h1 {
  font-weight: 400;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin: 0;
}

h2 {
  font-weight:400;
  font-size:1.2rem;
  text-transform: capitalize;
  margin: 0;
  color: #888;
}

#image {
  display: block;
  width: 100%;
  max-width: 900px;
}

#main {
  max-width: 900px;
  margin: auto;
  box-shadow: 30px 0px 40px rgba(0,0,0,0.1), -30px 0px 40px rgba(0,0,0,0.1);
}

#landing {
  background: #fff;
}

#landing-text {
  display: flex;
  flex: 0 1 40vw;
  height: 35vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 1rem;
  padding-left: 1rem;
}

section {
  padding: .03rem;
}

figcaption {
  font-size: .8rem;
}

#bio-header, #collection-header {
  font-size: 2rem;
}

#tribute-info, #collection-div {
  background: #fff;
  padding-right: 2rem;
  padding-left: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

figcaption {
  text-align: right;
  padding-right: 2rem;
  padding-top: .1rem;
  padding-bottom: .1rem;
  background: #575757;
  color: #f7f7f7;
}

h3 {
  text-align: right;
  padding-right: 2rem;
  padding-top: .1rem;
  padding-bottom: .5rem;
  color: #f7f7f7;
}

a {
  text-decoration: none;
}

cite {
  text-align: right;
  text-transform: capitalize;
}

/* slideshow */
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  background: rgba(0,0,0,.4);
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

.numbertext {
  float: right;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,.4);
}



/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

img {
  max-height: 100%;
  max-width: 100%;
}

.slideshow-container {
  padding-top: 1rem;
}
            
          
!
            
              var slideIndex = 1;
showSlides(slideIndex);

// Next/previous controls
function plusSlides(n) {
  showSlides(slideIndex += n);
}

// Thumbnail image controls
function currentSlide(n) {
  showSlides(slideIndex = n);
}

function showSlides(n) {
  var i;
  var slides = document.getElementsByClassName("mySlides");
  var dots = document.getElementsByClassName("dot");
  if (n > slides.length) {slideIndex = 1} 
  if (n < 1) {slideIndex = slides.length}
  for (i = 0; i < slides.length; i++) {
      slides[i].style.display = "none"; 
  }
  for (i = 0; i < dots.length; i++) {
      dots[i].className = dots[i].className.replace(" active", "");
  }
  slides[slideIndex-1].style.display = "block"; 
  dots[slideIndex-1].className += " active";
}
            
          
!
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