Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive newsletter built with React.js

@vernonroque

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi everyone,

Here is my newsletter project. I built it with react.js. One question I have is what is the best way to set dimensions for an image within a container. Should I make the image have fixed dimensions? Or should I make the dimensions set to percentages i.e. width:100%, height: 100%?

If I fixed the dimensions, the image won't be responsive. And sometimes if I make the dimensions percentages, The dimensions become a bit unpredictable when the screen shrinks and grows.

Any advice is greatly appreciated. Thanks in advance! Happy coding :)

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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