Design comparison
Solution retrospective
Although in many examples work with the body directly. I preferred to work with the section that was going to contain my elements for the challenge.
What challenges did you encounter, and how did you overcome them?I am a programmer focused on back end, I am entering the world of front end to not be so basic in terms of styles.
For me it was quite a challenge (and very difficult) to get closer to the final result.
Since it is the first time that I enter the front end and it is difficult for me to even do the most basic thing (center an element).
I read a lot of documentation in Google.
What specific areas of your project would you like help with?HTML structure and CSS styles for better visual appearance and performance
Community feedback
- @mkborisPosted 2 months ago
Nice work MarioCampoDev, here are a few things to review
- All content should be wrapped within landmarks. Wrap a
main
tag around the .qrCard and afooter
for the .attribution - To properly center add this to the body and remove the
overflow: hidden;
/* your other styles */ min-height: 100vh; display: flex; align-items: center; justify-content: center;
- Avoid setting fixed
widths
andheight
on elements, as this can create problems with responsiveness and content fit. Instead, let the content and padding determine the element’s size. If necessary, usemax-width
ormin-height
, and prefer relative units likerem
for better adaptability. Update the .backCardwidth
to usemax-width
and should be defined inrem
. - Consider using a modern CSS reset at the start of the styles in every project. Like this one Modern CSS Reset. This will help reset a list of default browser styles.
- Font-size should be written in
rem
not px. This article explains it better Why font-size must NEVER be in pixels.
2 - All content should be wrapped within landmarks. Wrap a
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