3 ms·
Interesting reading. However, I don't like non-semantic CSS class names - parent, float and clearfix. There are better names like used here: http://stackoverflo
by ivan_gammel 13y ago
Interesting reading. However, I don't like non-semantic CSS class names - parent, float and clearfix. There are better names like used here:
http://stackoverflow.com/questions/14874341/how-to-clearfix-without-markup http://stackoverflow.com/questions/14874341/how-to-clearfix-...
- rmrfrmrf 13y agoIMO that just leads to less reusable CSS and more stylesheet spaghetti. I see a class "clearfix" in HTML and I know what it's doing; I see ".clearfix {" and I know what it's doing; but I look at "article:after, .article:after, .group:after, col-2:after, {" and have to figure out what's going on. In terms of code, I think you should be semantic from a developer's perspective.
- mdo 13y agoTo be clear, those are just example class names so you know exactly what element I'm referring to and where it resides in the markup.