Thread: CSS Question
View Single Post
Old 11-09-2020, 02:45 PM   #8
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,221
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by hobnail View Post
A somewhat confusing way you could do it is to say
Code:
p { text-indent: 0; }
p + p { text-indent: 2em; }
Which says (confusingly) paragraphs by default have no indent, but paragraphs following a paragraph (which are the majority) are indented. So the first one ends up handling paragraphs after h, blockquote, etc. tags.

Clever, but as I said, confusing.
That won't do it. He wants to style a BLOCK of paragraphs. What you suggested only works for a single paragraph following a different element other then <p>.
thiago.eec is offline   Reply With Quote