Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Order summary component challenge - Solution using float ONLY

animation
Leo-Code-CA•60
@Leo-Code-CA
A solution to the Order summary component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello everyone!

For this project, I decided to challenge myself with the rule of building this order summary WITHOUT using CSS grid or Flexbox! That’s what I did and instead, I only used CSS float. It was neither the easiest nor the fastest way to build the project but I'm glad succeeded!

I have a question about CSS classes. I understand now that it's always better to assign a class to an HTML element that we wanna style, even if we won't reuse it later. However I was wondering, are they specific rules or at least good practices when creating those classes? I have the feeling that there are so many different options, it's hard to choose!

Is it better to group elements by display, position, color, font...? Is there a priority?

Thanks a lot and... happy coding! Have fun :)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Leo-Code-CA's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License