Yesterday, I received an e-mail from a client. Some of the text on their website, that was editted with a rich-text textarea editor, had gotten a different font layout as the rest of the site. Of course, this was not what was supposed to happen. Cause of this, I soon found out, was some markup that didn't get filtered by the "Word HTML filter" I built in, since this client pastes a lot of their website text into the site from Word. And so I needed to find out how to overrule style attributes in these Word-generated tags. Thanks to zeroK I found out about the !important rule in CSS. And so, by adding the following CSS to the site's header: * { font-family: Verdana, Arial, Helvetica, sans-serif !important; } I overruled the font-family style attribute added by Word. Now, all text in the site is always the same font-family, as it was meant to be.
Yesterday, I received an e-mail from a client. Some of the text on their website, that was editted with a rich-text textarea editor, had gotten a different font layout as the rest of the site. Of course, this was not what was supposed to happen. Cause of this, I soon found out, was some markup that didn't get filtered by the "Word HTML filter" I built in, since this client pastes a lot of their website text into the site from Word. And so I needed to find out how to overrule style attributes in these Word-generated tags. Thanks to zeroK I found out about the !important rule in CSS. And so, by adding the following CSS to the site's header: * { font-family: Verdana, Arial, Helvetica, sans-serif !important; } I overruled the font-family style attribute added by Word. Now, all text in the site is always the same font-family, as it was meant to be.
05-06-2012: Forum PHP
06-06-2012: Symfony Live Paris 2012
07-06-2012: Symfony Live Paris 2012
08-06-2012: Symfony Live Paris 2012
09-06-2012: Symfony Live Paris 2012
23-06-2012: PHP TestFest NL