Design comparison
Solution retrospective
Any suggestion will be helpful.
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hello Mahin, how are you? I truly loved your project's outcome, however I have some advice that I hope you'll find useful:
To prevent the background image from breaking at higher resolutions, we can prevent this in two different ways:
-
Add a
background-repeat: repeat-x;
, the image will repeat on the horizontal axis, preventing it from breaking. -
Add a
background-size: 100% 50vmin;
, the50vmin
will set its height as the page target, and100%
will make it stretch on the horizontal axis.
Feel free to choose one of the two!
Instead of using "width" to specify an absolute width, use "max-width" to specify a maximum instead. By doing this, the content will behave much more amiably in smaller resolutions, making it easier to make the project responsive.
The remainder is excellent.
I hope it's useful. 👍
Marked as helpful0@boredmahinPosted almost 2 years ago@AdrianoEscarabote thanks man for your suggestion. I'm kinda newbie in coding. This kinda support will surely help a lot ✌
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