View Single Post
Old 03-19-2014, 09:44 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,558
Karma: 19620479
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by mrmikel View Post
I have some question whether this sort of construction is wise, whether it is permitted or not.
I would reduce it to:

Code:
p { margin: 0; text-indent: 1.5em; text-align: justify; }
h1 + p { text-indent: 0; }
- For goodness' sake, do not force a base font.
- I'm sure you want justification in the first paragraph too.
- No need to set margin-top again, when the margin was already set before.
- Rather than having a special selector for when you want indents, have one for when you don't want them (h1+p, as an example). With p+p you don't get indents in a <p> after a <div class="illustration">.

Ideally, you wouldn't even specify margins or text-align (maybe not even text-indent:1.5em), that should be set by the reader.
Jellby is offline   Reply With Quote