Design comparison
Solution retrospective
I have completed this project and hoping to improve my skills ^^ .
Hope you like it , give feedback please.
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there 👋. Good job on completing the challenge !
I have one suggestion about your code that might interest you.
-
You should use a CSS reset. A CSS reset is a set of CSS rules that are applied to a webpage in order to remove the default styling of different browsers.
Currently the body element has a margin of 8px which generates a scrollbar on desktop devices.
CSS resets that are widely used:
Above all, the solution you submitted is great!
Happy coding!
Marked as helpful0 -
- @Mr-jawPosted almost 2 years ago
Hello there 👋
Great job on completing the challenge
HTML 📄
alt
attribute of the<img>
tag should not contain hyphens or underscores, it should be humanly understandable text
CSS 🎨
-
Use relative units like
em
orrem
for margin, padding, width, and height. and most preferablyrem
for font sizes. avoid usingpx
which is an absolute unit -
to exactly center the card to the middle of the page, follow these methods below,
- remove
margin: 125px auto;
from the.box
element. And add the following codes to thebody
tag,
body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
I hope this was useful 😊
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