Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive ( Including SVG ) | Tailwind + Nuxt 3

@dimar-hanung

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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

@0xabdulkhaliq

Posted

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 for div element is not necessary. because div 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 helpful

1

@dimar-hanung

Posted

@0xAbdulKhalid

Hi 👋, thanks for reviewing my code!

div with class order-summary have display:grid, that's mean is not block level element anymore right (?), or maybe i'm wrong.

but you're right about remove w-full in order-summary, the results are still as expected, i have fixed it

I 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 GitHub
Discord logo

Join 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