Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here.
stuck on the CSS side.

hints: Your img element should have a display of block
Your #image should have a max-width of 100%
Your #image should be centered within its parent

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<main id="main">
  <meta charset="utf-8">
  <link rel="stylesheet" href="styles.css">
  <title id="title">Dr. Norman Borlaug</title>
  <div id="img-div">
    <img id="image"></img>
    <div id="img-caption">Dr. Norman Borlaug</div>
  </div>
  <p id="tribute-info">a person</p>
  <a id="tribute-link" target="_blank" href="freecodecamp.org">
  </main>
  </html>

/* file: styles.css */
image [display:block;
max-width:100%;
margin:0 auto;]
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14909.124.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

remember that you don’t use square brackets in css

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.