Quote:
Originally Posted by JSWolf
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.