Tell us what’s happening:
I am unable to resize or center my image and don’t understand where I am failing. Have tried a style element in the css coding space, as well as inline and internal in the html space. Nothing I do in the css coding space applies/affects display and it appears as if nothing in that space connects with or to what’s in the html space. (For example, I tried centering the title too, but nothing changed/happened.)
I have googled help, and searched these posts for help to no avail. The response from the “run test” button is no help at all. I believe this will link to the project: https://codepen.io/rjlamont/pen/BapMpjX
8 of 10 tests are passing. User stories 8&9 are failing.
Thanks.
Your code so far
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!--
Hello Camper!
For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding!
- The freeCodeCamp Team
-->
<div>
<main id="main">
<h1 id="title">Harriet Tubman</h1><br>
<div id="img-div">
<img id="image" src="https://cdn.britannica.com/79/198579-050-F8A4363D/Harriet-Tubman.jpg"alt="Youthful Harriet Tubman sitting in chair."></img>
<figcaption id="img-caption"> <b>A youthful Harriet poses in a seated position.</b></figcaption>
</div>
<p>"I wanted to do my tribute page on Harriet Tubman because I believe her to be the bravest person that has ever lived. Harriet Tubman was born a slave almost 200 years ago. During her lifetime, she fought for the abolition of slavery and risked her life, on numerous occasions, to help other slaves escape. She also fought on behalf of the Union Army, as a spy, during the US civil war. Harriet Tubman is an American hero."</p>
<p id="tribute-info">"You can find out more about Harriet Tubman by visiting <a id="tribute-link" target="_blank" href="harriet-tubman.org"> harriet-tubman.org</a>, a website dedicated to sharing the amazing story of this phenomenal woman."</p>
</main>
</div>
Here’s one thing I’ve tried in the css space:
<style>
#image {
display: block;
maxwidth: 80%;
margin-left: auto;
margin-right: auto;
}
</style>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36
.
Challenge: Build a Tribute Page
Link to the challenge: