Responsive Order Summary Website using CSS Flex

Solution retrospective
I am very proud because I have learned how to use CSS Flex in a better way and I have also made this website responsive for mobiles.
What challenges did you encounter, and how did you overcome them?The first challenge was to make the annual plan section. It was really tough for me as I am a beginner.
But when I used CSS Flex, my problem was solved easily.
What specific areas of your project would you like help with?I have noticed that the background image of my website doesn't look well on mobile screens and less than 1600px width.
Please tell me if you know how to solve this problem.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@huyphan2210
Hi @methane-js,
Regarding your background image issue, I noticed you're using
background-size: contain
on thebody
. Instead of that, you might want to estimate what percentage of thebackground-image
should cover the width and height of thebody
. Then, you can usebackground-size: [width]% [height]%
to customize it accordingly.For example:
body { background-size: 50% 70%; /* Adjust width and height as needed */ }
Play around with the percentages to find the right fit for your layout.
Hope this helps!
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