how to fork? whenever i copy the link to JS and save it and then run the tests, it keeps asking me to LOAD tests. I looked at other answers available but they are not helping the problem.
have you selected the test from drop down menu?
can you share your pen and a screenshot of what’s happening?
I figured it out now. But the tests that I am running are showing errors. Just trying to fix it. Its showing these errors: 1. Within the “img-div” element, I should see an element with a corresponding id=“image”.
2. The element should be centered within its parent element.
I cant seem to fix it
impossible to help without your code
please share your pen
This is the link to my code:
If you can share your pen it would be easier to debug, otherwise please format correctly or it is impossible to see your html
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>
) will also add backticks around text.
Note: Backticks are not single quotes.
sorry about the previous reply.
This is the link to my pen:
https://codepen.io/shweta_arya_/pen/poJYJmW
check your image element, are you using the correct id?
4. Within the “img-div” element, I should see an
element with a corresponding id=“image”.
they meant to excatlly use that name
In this part u are asked to make it responsive
#img {
width: 100%;
max-width: 100%;
display: inline-block;
height: auto;
margin: auto auto;
background-color: aliceblue;
}
i would recomend to read link bellow how responciveness works.
and then ask yourself is there code that makes this responsive?
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Thank you so much. This fixed the two errors.
But its still showing this error:
The element should responsively resize, relative to the width of its parent element, without exceeding its original size.
Okay. I will check it and will let you know.
look at the failed test, just below it there is a block of code that details the error. Now look at the first line of that block, it will often show what’s wrong