I tried to use an img
tag with classes mobile
and desktop
that when combined with media
queries would show either (a) the mobile image, or (b) the desktop image, but I was not successful. I was more successful in using CSS' background-image
with background-size
, such that I really only had to use one image, where the CSS magic would make the same image appear as it does in the images provided by the Challenge. The CSS magic was unintentional, so I'm lucky it worked out. Should I be using img
tags, or does my solution (w/ background-image
and background-size
) work? Is it better to serve only a single image? If not, why not?
Hayat Uddin
@hayat139All comments
- @mreed4Submitted about 1 year ago@hayat139Posted about 1 year ago
Hi, dear, it's a great piece of nicely written work. I can't write like you either. But you missed the hover effect on the button. I believe this happened without your knowledge. I hope you improve your learning and writing skills. Good luck to you
0