Design comparison
SolutionDesign
Solution retrospective
Which is better between using an image as a background or as an element?
Community feedback
- @RevazSologhashviliPosted 11 months ago
It depends on semantics i think. If in UI you have Card component as in this challenge then you should use img element for showing img as a part of card item. but if image is for just showing something like vector lines for entire background then u should use background image styles.
Marked as helpful0@imanmaulana1Posted 11 months agoI see. Thanks for your feedback, quite easy to understand! @RevazSologhashvili
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord