Cannot pass last test first project

Tell us what’s happening:
can not seem to center img with parent element, is the issue with my background img element?

Your code so far

<!doctype html> 
        body{ background-position: center center;
                  background-repeat: no-repeat;
          background-size: cover;
          font-family: calibri;}
       padding: 230px 230px 230px 230px;
<div id="main">
  <h1 id="title"> Anthony Bourdain: Chef,Author,World Traveler </h1>
    <div id=img-div> <img id="image" src="" alt="Anthony Bourdain" width="20%" height"20%">
  <figcaption id="img-caption"> Anthony was a well traveld chef and writter. Exploring the world with a camera always giving his view on world issues along the way, And of course sampling the best cusine the country had to offer.  </figcaption>
  <p id="tribute-info"> <b>   Anthony Michael Bourdain was born in New york city June 25th 1956, Anthony was a celebrated American Chef  book author,journalist and travel documentarian who starred in programs focusing on the exploration of international culture, cuisine, and the human condition. Anthony completed his studies at the prestiges Culinary Institute of America.</p></b>
    <b>T.V. NETWORKS 
    <li>Food Netwrok</li>
    <li>Travel Channel</li>
      <ul style="color:white">
        <li>No Reservations</li>
        <li>Parts Unknown</li>
        <li>The Layover</li>
      <span style="color:white;"> BOOKS</span> 
      <ul style="color:white">
        <li>Kitchen Confidential: Adventures in the Culinary Underbelly</li>
        <li>A Cook's Tour</li>
        <li>The Nasty Bits</li>
        <li> Medium Raw</li> 
      </ul> </p>
  <footer> <p>  Anthony was a beloved Man around the world and had a profound impact on how people perceived the world around them and helped many to see the world through a differnt window to learn more about the life and story of Anthony it would be good to
 <a id="tribute-link" target="_blank"    href=>Start here.</a></p></foooter>

***CSS code**


  max-width: 100%;
  height: auto;
  display: block;

Hi @zgreenhaw!

Welcome to the forum!

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

The test is looking for an img element to be centered not a background image.

Hope that helps!