Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This article would have much less of a problem with CSS if they actually used the cascade. All those instances of double underscore in class names should be two separate classes: ".author-bio__name" becomes ".author-bio .name". Then you can style the generic .name while also having control over specifically author names.

The end of the article comes to the same kind of conclusion (use multiple classes), while also using CSS as a style standard. But the beginning shouldn't even be an option.



I actually don't really like the cascade.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: