HTML and CSS Reference
In-Depth Information
TO OVERRIDE INLINE STYLES IN USER-GENERATED CONTENT
One frustrating aspect of CSS development is when user-generated content
includes inline styles, as would occur with some WYSIWYG editors in CMSs.
In the CSS cascade, inline styles will override regular styles, so any
undesirable element styling that occurs through generated content will be
di ! cult, if not impossible, to change using customary CSS rules. You can
circumvent this problem using an !important declaration, because a CSS
rule with !important in an author stylesheet will override inline CSS.
FOR PRINT STYLESHEETS
Although this wouldn't be necessary in all cases, and might be discouraged
in some cases for the same reasons mentioned earlier, you could add !
important declarations to your print-only stylesheets to help override
specific styles without having to repeat selector specificity.
Search WWH ::




Custom Search