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

I used the role-attribute as sub-styling for a parent class!

Example:

.desc // Parent class

.desc[role="top-left"] // Sub styling for parent

.desc[role="top-right"] // Sub styling for parent

But there is no specific rule to do it like this! I just don't want so many classes.



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

Search: