Design comparison
Community feedback
- @vanzasetiaPosted over 3 years ago
👋Hi Sandy! My name is Vanza!
Next time, if you want to ask questions, input your all questions inside the Questions for the community section when you want to submit the solution. That way your question will be more likely get answered. Because right now, nobody know that you have a question.
I have some feedback on this solution too as well:
- Only use one
h1
at a time, since it's consider as a best practice. - On your
.card
, don't usevh
unit as a height, since it will cause an issue if the user screen height is too high or too low. Instead try to userem
unit. - Try to use
rem
unit on your font size, it's simply because it will allow the users to change the font size base on their browser setting.
That's it! Hopefully this is helpful!
0 - Only use one
- @sandy930Posted over 3 years ago
Can someone help me explaining why my button in header part can not inherit the full width of li tag. I cannot make these word in the button display one line. It is always been out of the flow. Just in mobile viewport
0@vanzasetiaPosted over 3 years ago@sandy930 Well in my opinion, it's because that the
li
isdisplay: inline-flex
which means that theli
isdisplay: inline
and thea
as a flex child. Thedisplay: inline
is always take the smallest width as it can.So, my recommendation is that, instead of depending on a width of
li
, you can try to style thea
like a button:.btn { display: inline-block; padding: 1rem 4rem; }
So, right now the
width
of the button is depend on thepadding
and also prevent the text becoming two lines.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