View Single Post
Old 10-15-2013, 06:05 AM   #1
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
Question margin-top with page-break-before

I'm working on an ePub. it has many (very) short stories in it, so, I gather 5-10 of them in a single html file. Then I use page-break-before:always to make every story start in a new page.

Code:
{
h1 {page-break-before:always}
}
This works quite OK.

I also want to have some space before the headings. But when I add a margin-top property to h1, it doesn't seem to take effect. The heading starts at the very beginning of the page no matter how big a margin I set in the CSS.

I suppose I'm missing something. Any ideas?
canpolat is offline   Reply With Quote