Tribute Page - Build a Tribute Page - aQ6O92tVvcZ8_544-0TLb

i’m 3 check marks away from completing the tribute page project.

  1. Your img element should have a display of block .
  2. Your img should have a max-width of 100% .
  3. Your #image should be centered within its parent.

Any additional tips and tricks are welcomed. As you can probably tell, I’m superrrrrr green at all of this. Trying to make a career change. Thank you for all the help.

   **Your code so far**
/* file: index.html */
<main id="main">
<h1 id="title"><span>Sam</span> Burns</h1>
 <a href="https://www.youtube.com/watch?v=7mpy9n3ODIo" id="tribute-link" target="_blank">Sam Burns Valspar Highlight Video</a>
 <figure id="img-div">
   <img id="image" src="https://cdn.mos.cms.futurecdn.net/F4BGrgHwmgyLEHktaWekfA-1280-80.jpg.webp" alt="sam-burns" class="center"/>
   <figcaption id="img-caption">Samuel Holland Burns (born July 23, 1996) is an American professional golfer who plays on the PGA Tour. He played his college golf at Louisiana State University. In 2021, he won the Valspar Championship and the Sanderson Farms Championship.</figcaption>

   </figure>
 <section id="tribute-info">In October 2017, Burns made his PGA Tour debut as a professional at the Sanderson Farms Championship. After finishing T43, he played a week later at the Shriners Hospitals for Children Open and finished T20. Burns earned guaranteed starts for the first 12 Web.com Tour events of the 2018 season with his T10 finish at the final stage of the Web.com Tour Qualifying Tournament. He finished T2 at the Colombia Championship in February 2018. Burns finished T7 at the Honda Classic with Tiger Woods as his playing partner in the final round, earning Burns entry into the Valspar Championship, where he finished T12. Burns earned his first professional win at the 2018 Savannah Golf Championship on the Web.com Tour when he birdied each of the final three holes to defeat Roberto Castro by one stroke. He gained a place on the PGA Tour at the end of the 2018 Web.com season.
Burns has played on the PGA Tour since the start of the 2018–19 season. In February 2021, he finished solo third place at the Genesis Invitational, one shot outside of the playoff with Tony Finau and Max Homa, Homa being the eventual winner. Burns held the solo lead at the end of each of the first three rounds but was ultimately caught on the back 9 during the final round. In May, Burns won the Valspar Championship for his first PGA Tour victory. Burns shot a final round 68 to win by three strokes over Keegan Bradley.[10] Two weeks later Burns finished runner-up to K.H. Lee at the AT&T Byron Nelson.
On October 3, 2021, Burns won his second PGA Tour title at the Sanderson Farms Championship in Jackson, Mississippi.
On March 20, 2022, Burns won his second consecutive Valspar Championship title, beating Davis Riley in a playoff.
On May 29, 2022, Burns won the Charles Schwab Challenge after making a 38-foot birdie putt in a playoff against world No.1 Scottie Scheffler. Burns overcame a seven stroke deficit to win, matching Nick Price in 1994 for largest comeback in a final round to win at Colonial Country Club.</section>
</main>
/* file: styles.css */
body {
 font-family: 'Source Sans Pro', sans-seris;
}

h1 {
 text-align: center;
 font-size: 64px;
 color: gold; 
 text-transform: uppercase;
}
span{
 color: purple;
}

#image {
 display: block;
 margin: 0 auto;
 max-width: 100%;
 height: auto;
 margin-bottom: 10px;
}

a{
   display: flex;
   text-align: center;
   width: 100px;
   margin: auto;
}
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

I don’t see a link to your CSS file in your HTML code?

From the project instructions:

Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS

1 Like