Tell us what’s happening:
hi, guys. So i couldn’t pass some points in this assignment. 1. Your img
element should have a display
of block
2. Your #image
should have a max-width
of 100%
3. Your #image
should be centered within its parent
P.S. I have checked ID letter by letter in HTML and it matches.
Thank you.
Your code so far
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.
#main {
background-color: rgb(223, 220, 220);
border-radius: 10px;
margin: 30px 10px;
padding: 15px;
max-width: 1280px;
max-height: 100%;
}
.container {
text-align: center;
}
#mainHeader {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#heading2 {
font-weight: normal;
}
#img-div {
background-color: white;
padding: 10px;
margin: 0;
text-align: center;
max-width: 800px;
}
#image {
display: block;
height: auto;
max-width: 100%;
margin: 0;
margin-left: auto;
margin-right: auto;
padding-bottom: 10px;
}
#tribute-info {
max-width: 500px;
margin: 0 auto;
text-align: center;
}
h4 {
text-align: center;
}
ul li {
margin-bottom: 10px;
line-height: 30px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.39
Challenge: Build a Tribute Page
Link to the challenge: