Re:Global typographic styles suck
by sp332 on Sunday May 06, 2012 @10:57AM
(#3935247)
Traditionally, we'll apply typographic styles to elements like strong, em, p, ul, h1, h2, h3 etc, in the global scope. We are adding these styles to the elements globally. We think to ourselves "we're using the cascade!" and wrongly thinking that we're saving lines of code in the long run.
So the argument is to only style individual blocks of text, instead of saying "All H1 elements everywhere on this page will have this style". His "copy" class removes all typographical styling, so whatever styles you apply to a block will work without having to remove e.g. bullets from a list manually every time. (edited)
So the argument is to only style individual blocks of text, instead of saying "All H1 elements everywhere on this page will have this style". His "copy" class removes all typographical styling, so whatever styles you apply to a block will work without having to remove e.g. bullets from a list manually every time. (edited)