![](https://res.cloudinary.com/dz209s6jk/image/upload/f_auto,q_auto,w_900/Screenshots/qphnip9onrfwej0qjpok.jpg)
Order summary component challenge - Solution using float ONLY
Design comparison
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 :)
Community feedback
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