Class name order shouldn’t matter
See original GitHub issueHi,
The result produced by class="ui segment attached bottom"
and class="ui bottom attached segment"
differs.
Maybe I’m lacking some basic HTML/CSS knowledge, but I think order should not matter, although I understand it’s more “english-readable” to put the classes in the “grammatically correct” order.
Whereas class="ui bottom attached segment"
gives me the rounded bottom, class="ui segment attached bottom"
does not (tested on Chrome 58).
Thank you all!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (2 by maintainers)
Top Results From Across the Web
The Order of CSS Classes in HTML Doesn't Matter
CSS always takes place from last to top and right to left so the ordering of the CSS matters not the classes in...
Read more >Class Names in same order produce different result(Chrome ...
Is it possible that in CSS world, exactly the same order class name produce a different result? Order of classes is not important....
Read more >Class order in html shouldn't matter, but why does it change in ...
I was following with the lesson and I put the grid classes in different order thinking that it wouldn't make a difference... but...
Read more >Best Practices for ID and Class Names - Jens Oliver Meiert
Best Practices for ID and Class Names · 1. Keep Use of IDs and Classes to a Minimum · 2. Use Functional ID...
Read more >Naming Classes — Why It Matters, and How to Do It Well
This is the general rule of thumb. If a word is ambiguous, doesn't add any meaning to a name, and is not the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @RenaudParis, I think that’s because SUI uses the attribute selector—it’s not specific to the segment component—
.ui.segment[class*="bottom attached"]
.For semantic ui to play with parcel
create .htmlnanorc.js with below content: