News for hackers. Stuff that matters.
Re:How We Could Write Better CSS by Jormundir on Tuesday September 24, 2013 @06:50PM (#6441356)
Selecting element types rather than creating new classes is what causes bleeding styles.
Re:How We Could Write Better CSS by protonfish on Wednesday September 25, 2013 @04:01PM (#6446928)
Until you get class-name collisions or your classes are applied to elements by other developers without you knowing. So you create more unique classes and every element ends up having 12 classes applied to it. Classes are no solution to bleeding styles.