Hello,
I'm using the text-indent attribute to indent the first paragraph in a series of paragraphs following up. Like this:
div.content p + p {
text-indent: 2mm;
}
This works as expected, but when there are page breaks, or in multi-column layout column breaks, in between the series of paragraphs. I'm running into problems. Because after a column- or page-break the first paragraph (which is not the first in the series, but the first on the new column or page) on the new page or column is indented as well. I need to avoid that, as this is how it is usually handled for print media.
Is there a way to "collapse"/overwrite text-indent for an element if it appears as the first on a new page or column?
Greetings,
John
I'm using the text-indent attribute to indent the first paragraph in a series of paragraphs following up. Like this:
div.content p + p {
text-indent: 2mm;
}
This works as expected, but when there are page breaks, or in multi-column layout column breaks, in between the series of paragraphs. I'm running into problems. Because after a column- or page-break the first paragraph (which is not the first in the series, but the first on the new column or page) on the new page or column is indented as well. I need to avoid that, as this is how it is usually handled for print media.
Is there a way to "collapse"/overwrite text-indent for an element if it appears as the first on a new page or column?
Greetings,
John
Edited by John