Tribute Page - Build a Tribute Page

Tell us what’s happening:
There is one test failed, saying my “#image height should be set to ‘auto’”
But it is set like this

Your code so far

<!-- file: index.html -->
<!doctype html>
<html lang="en">
    <meta charset="utf-8" />
    <link rel="stylesheet" href="styles.css" />
    <title>My tribute page</title>
    <main id="main">
      <h1 id="title">Dr. Norman Borlaug</h1>
      <figure id="img-div">
        <img id="image" alt="main photo here" />
        <div id="img-caption">On this photo u can see people</div>

      <div id="tribute-info">This is out first super page here!</div>
      <a href="" id="tribute-link" target="_blank">You can find more info here</a>
/* file: styles.css */
#image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Once i removed ‘width: 100%;’ , all tests passed.
Anyway, test description little bit confusing in this case.

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