Tell us what’s happening:
Hello, I’m sure I’m correct in my answer, however the website won’t accept my answer after multiple attempts and variations to achieve the desired results.
The problem is with the last requirement for the Tribute Page Certification Project to align an image within the parent element. I’ve tried aligning the child element directly, and the parent element it is nested in however none of my attempts are being accepted.
Your code so far
After many different attempts this is the final code I have tried.
- Mac Miller
The #img-div is the parent element containing the #image element and a figcaption. I’ve tried this flexbox technique, using the margin: auto; technique, the text-align: center; technique, and using different selector styles to see if maybe I had a wrong selection, but nothing is being accepted.
Am I using the wrong selectors or centering technique? Please, I could really use some help. Google has only given me results for the things I’ve already tried.
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.
Replace these two sentences with your copied code. Please leave the ``` line above and the ``` line below, because they allow your code to properly format in the post.
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/188.8.131.52 Safari/537.36
Challenge: Tribute Page - Build a Tribute Page
Link to the challenge: