Here’s the link of the question:
Create a class called smaller-image and use it to resize the image so that it’s only 100 pixels wide,I put:
But it failed.Can anyone help me out?Thanks a lot!
You don’t need zoom:100% in your style. The instructions just say zoom:100% because some people could be zooming in the browser to view contents bigger.
Then apply your newly created class to the cat image.
Please do not change the topic category. I changed it to HTML-CSS, because the questiont is related to HTML-CSS.
Even with the zoom setting (shimphillip is right, you don’t need that).
It worked for me. Did you apply the class to your img tag? Can you show what that looks like?
Thank you,I’ve deleted zoom and apply it to the image :
but still cant pass the test,dont know why:confounded:
Can you please post the whole code you are trying to use?
Here’s my code,thank you!
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
font-family: Lobster, monospace;
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<p>Things cats love:</p>
<p>Top 3 things cats hate:</p>
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
This looks fine in my browser. And it passes the tests.
Perhaps you need to reset your zoom level in your browser.
Your code looks okay, what does that error say .?
So that passes just fine.
Clear your cache and restart your browser. If you’re not using Chrome, try chrome.
Sorry,I am new to it.I will keep it in mind,thanks!
// running test
Your image should be 100 pixels wide. Browser zoom should be at 100%.
// tests completed
You can try what @Tirjasdyn has suggested, chrome works better for FCC
wow,it works!I just tried 360 browser and it passed.thanks very much!
Thanks a lot!You also solved my solution
Thanks!It turns out to be the browser problem.