Responsive page created using widths, flex box, HTML and CSS.
Design comparison
Solution retrospective
If anyone have any highlights or suggestions feel free to drop it. I'm still learning HTML and CSS π
Community feedback
- @denieldenPosted about 2 years ago
Hi Arnello, congratulations on completing the challenge, great job! π
Some little tips for optimizing your code:
- use
main
tag to wrap the card and improve the Accessibility not as contaioner of card - also you can use
article
tag instead of a simplediv
to the container card for improve the Accessibility - remove all
margin
from.container
class because with flex they are superfluous - use
min-height: 100vh
to body instead ofheight
, otherwise the content is cut off when the browser height is less than the content
Hope this help! Happy coding π
Marked as helpful0 - use
- @correlucasPosted about 2 years ago
πΎHi @Arnasne, congratulations on your first solution!π Welcome to the Frontend Mentor Coding Community!
Great solution and a great start! From what I saw youβre on the right track. Iβve few suggestions for you that you can consider adding to your code:
1.Use
<main>
instead of a simple<div>
this way you improve the semantics and accessibility showing which is the main block of content on this page. Remember that every page should have a<main>
block and that<div>
doesn't have any semantic meaning.2.Use relative units like
rem or em
instead ofpx
to have a better performance when your page content resizes on different screens and devices.REM
andEM
does not just apply to font size, but all sizes as well. To save your time you can code your whole page usingpx
and then in the end use a VsCode plugin calledpx to rem
to do the automatic conversion or use this website https://pixelsconverter.com/px-to-rem3.Use a CSS reset to avoid all the problems you can have with the default CSS setup, removing all margins, and making the images easier to work, see the article below where you can copy and paste this CSS code cheatsheet: https://piccalil.li/blog/a-modern-css-reset/
βοΈ I hope this helps you and happy coding!
Marked as helpful0
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