View Single Post
Old 09-06-2024, 12:40 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by foosion View Post
What is the order of precedence of major tags, such as @page, body, h1, p?

Is it the case that the closer something is to text the higher precedence it has (overriding things farther away)? And, for example in <p class-"xyz"> xyz would override the relevant properties of p.

Also, where can I find the defaults for the tags?
Think Boxes inside boxes. Body is the outer box (for content),

Have you opened the Property Inspector in the Viewer? <<<
That shows just how YOUR book is nested

Display Block means that is the current base
If it is NOT, the styles cascade on the prior block

Spend some time reading at W3C. Just remember EPUB is a limited subset of that (that being what web pages are built)
theducks is offline   Reply With Quote