Tell us what’s happening:
Help! I cannot figure this out! I have been fiddling with this for several days. Every suggestion from other posts hasn’t worked. Frustrating.
Thanks in advance for any help.
the two tests I can’t seem to fix:
-
Your
img
element should have adisplay
ofblock
. -
Failed:Your
#image
should have amax-width
of100%
.
Your code so far
#img-div {
display: block;
background: white;
margin: auto;
width: 60%;
padding: 5px;
padding-left: 20%;
padding-right: 20%;
}
img {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto;
}
#image {
max-width: 100%;
margin-top: 20px;
}
my entire code for the tribute page challenge is here:
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
<body>
<main id="main">
<h1 id="title">Honoring Pioneering Architect <br>Julia Morgan</h1>
<figure id="img-div">
<img id="image" src="/main-imgs/pool-a.jpg" alt="Berkley City Club pool, designed by Julia Morgan."/>
<figcaption id="img-caption">
A current day image reflecting the timeless beauty of the Berkley City Club Pool, designed by Julia Morgan,
1930.
</figcaption>
</figure>
**Your browser information:**
User Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36</code>
**Challenge:** Tribute Page - Build a Tribute Page
**Link to the challenge:**
https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-tribute-page-project/build-a-tribute-page