3 ms·
Inline styles = open ended, while classesrestrict you. Also this is switching things around. Now your html depends on your css classes and not your css dependi
by wes-k 8y ago
Inline styles = open ended, while classesrestrict you.
Also this is switching things around. Now your html depends on your css classes and not your css depending on your html. No more broken css when a dev modified the html structure and didn’t realize that one of the hundreds of lines of css now doesn’t get applied right.
- Tade0 8y agoNo more broken css when a dev modified the html structure and didn’t realize that one of the hundreds of lines of css now doesn’t get applied right. You can achieve the same, but with much less clutter using BEM. Or even better: BEM + SASS.