Tell us what’s happening:
Iam trying to do one of the projects but i keep getting the same three missing tests even though i have them in my code
-
Your
img
element should have adisplay
ofblock
. -
Failed:Your
#image
should have amax-width
of100%
.Your
#image
should be centered within its parent.
Your code so far
html {
font-size: 10px;
}
body{
font-size: 1rem;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1.6rem;
line-height: 1.5;
text-align: center;
color: #333;
margin: 0;
}
#main {
margin: 30px 8px;
padding: 15px;
border-radius: 5px;
background: #eee;
}
h1 {
font-size: 4rem;
margin-bottom: 0;
}
@media (max-width: 460px) {
h1 {
font-size: 3.5rem;
line-height: 1.2;
}
}
@media (max-width: 460px) {
#main {
margin: 0;
}
}
img{
height: auto;
display: block;
max-width: 100%;
}
#image {
margin: 0 auto;
margin: auto;
}
span{
font-weight:bold ;
}
a{
color: blue;
text-decoration: none;
}
h2 {
font-size: 3.25rem;
}
a:visited {
color: silver;
}
#img-div{
background: white;
}
#main{
text-align:center;
}
h2 {
font-size: 3.25rem;
}
@media (max-width: 460px) {
#main {
margin: 0;
}
}
#img-div {
background: white;
padding: 10px;
margin: 0;
}
#img-caption {
margin: 15px 0 5px 0;
}
@media (max-width: 460px) {
#img-caption {
font-size: 1.4rem;
}
}
#headline {
margin: 50px 0;
text-align: center;
}
ul{
max-width: 550px;
margin: 0 auto 50px auto;
text-align: left;
line-height: 1.6;
}
li {
margin: 16px 0;
}
#blockquote {
font-style: italic;
max-width: 545px;
margin: 0 auto 50px auto;
text-align: left;
}
**Your browser information:**
User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36</code>
**Challenge:** 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