Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <link rel="stylesheet" href="styles.css">
    <title>Tribute Page</title>
    <main id="main">
      <h1 id="title">This is a tribute page for Dr.Norman borlaug</h1>
      <div id="img-div">
        <img id="image" src="#">
          <div id="img-caption">
          <p id="img-caption">see his wotk</p>

      <div id="tribute-info">
        <p> He did more than medecine </p>
         <a target="_blank" id="tribute-link" href="#">Dr. Norman Borlaug</a>
/* file: styles.css */
body {
  text-align: center;

img {
  display: block;

#image {
 max-width: 100%;
 height: auto; 

#image-div {
  text-align: center;

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

i have tried multiple solutions but i cannot succeed putting the #image at the center within his parents ? what did i miss ?

  • You have duplicated the ids id="img-caption" - it is not allowed in html
  • Add the margin set to auto in #image selector

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