single-price-grid-component-using-html-css-grid-flexbox
Design comparison
Solution retrospective
if there are any suggestions to improve my code quality or make it best practice, I would love to learn it. if there is good resource for learning BEM to improve writing CSS I will be thankful to refer me to it.
Community feedback
- @vanzasetiaPosted over 1 year ago
Hi, @mohamed-magdy26! 👋
<button>
element must always havetype
attribute to prevent unexpected behavior. Source: Checklist - The A11Y Project #use-the-button-element-for-buttonsI recommend using a unitless value for the
line-height
. Also, make it the<body>
styling instead of to all elements—using the universal selector. Learn more — line-height - CSS: Cascading Style Sheets | MDNCreate a custom
:focus
styling. This will let people who use a keyboard to navigate the site know where they are currently on the page. More information — Focus appearance explainedI hope this helps. Happy coding! 😄
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