Submitted about 2 years ago
Responsive Single Price Grid Component Using SASS
@osmannurierdogan
Design comparison
SolutionDesign
Solution retrospective
I am open for any criticism and feedback :)
Community feedback
- @vanzasetiaPosted about 2 years ago
Hi, Osman! 👋
Here are some recommendations for improvements.
- To make the card in the middle of the page, you can make the
body
element as a flexbox container.
/** * 1. Make the card vertically center and * allow the body element to grow if needed */ body { display: flex; align-items: center; justify-content: center; min-height: 100vh; /* 1 */ }
- Use
rem
unit formargin
instead of percentage unit. It can lead to unexpected result on wide and tiny screen sizes. - Always specify the
type
of thebutton
. In this case, set the type of them astype="button"
. It will prevent the button from behaving unexpectedly. - I recommend adding
rel="noopener"
to any anchor tags that havetarget="_blank"
. It helps protect users of legacy browsers. I suggest reading the web.dev article to learn more about this.
Hope this helps!
Marked as helpful0@osmannurierdoganPosted about 2 years agoHi @vanzasetia,
Thanks for your recommendations. I will check them and update my solution.
Take care, have a good day...
0@vanzasetiaPosted about 2 years ago@osmannurierdogan No problem! Have a nice day too! 😄
0 - To make the card in the middle of the page, you can make the
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