View Single Post
Old 06-27-2012, 10:16 AM   #30
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,775
Karma: 206758686
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Alda View Post
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;
	}
DiapDealer is offline   Reply With Quote