View Single Post
Old 01-17-2025, 03:53 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,582
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
But if you want your ePub to also be backwards compatible with ePub2, then you cannot use p:first-of-type. However, if you do as I do and use <h2>chapter header</h2> then you can use...
Code:
h2 + p {
  text-indent; 0;
}
Which would only work is there no other code between the </h2> and the <p>. Quite a few ebooks seem to place images, subheaders, etc. between the chapter header with the </hx> ending tag and the initial p.
DNSB is online now   Reply With Quote