Design comparison
Solution retrospective
Hello. I am not confortable with choosing which responsive layout system to use when I start new webpage. There are several of them with some advantages and disadvantages. Mey be somebody knows the source where I can read more in details about that. Thanks
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @Darionas, congratulations on your first solution!๐ Welcome to the Frontend Mentor Coding Community!
Nice code and nice solution! You did a good job here putting everything together. Iโve some suggestions for you:
1.Clean your code by removing some unnecessary divs, most of the content can stand alone without a div. Use div only for blocks that need a special alignment or the content needs a special positioning.
2.Use
<main>
instead of<div>
to wrap the card container. This way you show that this is the main block of content and also replace the div with a semantic tag.3.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-rem4.Something that can be a time saver for you is to use a CSS RESET to remove all default settings for margins, 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 helpful1@DarionasPosted about 2 years ago@correlucas I appreciate your notices. I will modify my code. Thanks.
0 - @DarionasPosted about 2 years ago
Thank you @tak124 and @Phil from Discord w3schools server for some notes. Code was updated according all notes. ;)
0
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