バレンタイン 😈• 64,190
@VCarames
Posted
Hey there! 👋 Here are some suggestions to help improve your code:
Congrats on completing your first challenge!🎊🎆
- It is best practice to have separate files for you coding files (HTML, CSS, JS). It helps keep things organized and make it *easier to maintain.
- To properly center your content to your page, you will want to add the following to your
body
element (this method uses CSSGrid
):
body {
min-height: 100vh;
display: grid;
place-content: center;
}
More Info:📚
[Centering in CSS][https://moderncss.dev/complete-guide-to-centering-in-css/]
- Change
width
tomax-width
in your component’s container to make it responsive.
- For improved accessibility 📈 for your content, it is best practice to use
rem
for yourfont-size
and other property value. Whileem
is best formedia-queries
. Using these units gives users the ability to scale elements up and down, relative to a set value.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding!🎄🎁
Marked as helpful
1