@fidellim
Posted
Hi @Petabyte,
Congrats on finishing the project!
To remove the white background color below your image, you could just set your image tag as a block.
.image img {
display: block;
width: 300px;
border-radius: 10px 0px 0px 10px;
}
The code above should fix that issue.
If you are also interested in removing the warning on your accessibility report, you can add this block of code:
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/peta-8-bit">Petabyte</a>.
</div>
inside a <footer>
tag.
Let me know if it works!
Marked as helpful
@peta-8-bit
Posted
@fidellim Thanks. I made the image as grid and it worked . You think maybe if i changed flex-shrink or flex-grow or some other flex property, i could achieve the same with flex-box or grid is the only way to do it?
@fidellim
Posted
@peta-8-bit I believe it is possible.
.image img {
display: flex;
width: 300px;
border-radius: 10px 0px 0px 10px;
}
Even with this, it should work. You can also resubmit the project so that it is updated.
@peta-8-bit
Posted
@fidellim I don't really know how to update changes in git and github yet(without deleting and creating a new repo🤡), i think i will do it later.
@fidellim
Posted
@peta-8-bit that's alright! Once you are comfortable with learning them, go for it! Best of luck!