Responsive ( Including SVG ) | Tailwind + Nuxt 3
Design comparison
Solution retrospective
Hi Devlopers,
i'm still struggling to be consintent with tailwind, any tips? I'm confused about this tailwind best practice for utilities that don't exist in tailwind. so sometimes I use native css which makes it inconsistent
i will response any feedback, discussion, and question, thanks!
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
COMPONENT MEASUREMENTS 📐:
- The
width: 100%
property fordiv
element is not necessary. becausediv
is a block level element which will take the full width of the page by default.
- So feel free to remove
.w-full
tailwind utility class from<div class="order-summary ...">
element
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@dimar-hanungPosted over 1 year ago@0xAbdulKhalid
Hi 👋, thanks for reviewing my code!
div
with classorder-summary
havedisplay:grid
, that's mean is not block level element anymore right (?), or maybe i'm wrong.but you're right about remove
w-full
inorder-summary
, the results are still as expected, i have fixed itI use w-full because I'm still confused about the default width characteristic when playing with the display property
btw thanks for feedback, I got new insight today 🙌
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