Quote:
Originally Posted by sherman
I encountered a book which used !important in its CSS today, and I was (figuratively) tearing my hair out trying to figure out why the CSS wasn't displaying. Finally narrowed the issue down to the !important.
|
I regard !important in CSS as akin to GOTO statements in structured programming languages - technically permissible, but chances are excellent that if you're using them, you've gone very far astray and it's time to rethink your approach.
I may have encountered a couple of situations where !important truly was necessary, but none come to mind. The cases I think may have used that hack were large websites where pages used multiple layers of stylesheets - which makes sense in that context, but no ebook should be doing that.