Hi well done for this challenge,
It's better to use em
or rem
instead of px
. FreeCodeCamp.
FreeCodeCamp.
You can use picture tag to display different image depending on the size. Here a link : MDN.
<picture>
<source media="(max-width: 799px)" srcset="your path" >
<source media="(min-width: 800px)" srcset="your path" >
<img src="your path" alt="your description" >
</picture>
It's easier to start with a mobile-approach FreeCodeCamp.
Hope to be helpful.
0