Thread
:
When displaying ePubs, what is the best way to display user font-size, color, etc.?
View Single Post
05-24-2013, 10:37 AM
#
8
mattcurtis
Book Lover, Dev of Hyphen
Posts: 59
Karma: 2013886
Join Date: Apr 2013
Device: iPhone (Hyphen)
Quote:
Originally Posted by
William Ockham
No, don't do this. What you are asking is how to be non-compliant with the spec. To quote from the 2.01 version of the spec:
This specification assumes the use of selectors (see
http://www.w3.org/TR/REC-CSS2/selector.html
), cascade, and inheritance (see
http://www.w3.org/TR/CSS2/cascade.html
) be consistent with the definitions in the CSS2 Specification. For example, the CSS2 Specification defines !important rules (see
http://www.w3.org/TR/CSS2/cascade.html#important-rules
) to create a balance of power between author and user style sheets.
Use the cascade. No special effort required.
I'm probably going to give this a shot, and see if other methods are required.
mattcurtis
View Public Profile
Find More Posts by mattcurtis
Track Posts by mattcurtis via RSS