Quote:
Originally Posted by Alda
For some reason, the styling code that you so kindly provided in the stylesheet doesn't extend to this file (see attached). Any idea why?
|
None of the styling is being applied to that file? I'm guessing that you mean everything is working except the "
no indent on the first paragraph in the chapter" bit, right?
If so, that's because for that bit to work, there can't be anything between the <h1> heading and the first <p> tag. That file you showed had an <h2> tag in between them. If an h2 tag will
always immediately precede the first p tag, you can simply change the css code to:
Code:
h2 + p {
margin-top: 2em;
text-indent: 0;
}
If sometimes it's there and sometimes it's not (<h2>), you can it apply to both:
Code:
h1 + p, h2 + p {
margin-top: 2em;
text-indent: 0;
}
Might as well include h3's as well:
Code:
h1 + p, h2 + p, h3 + p {
margin-top: 2em;
text-indent: 0;
}