View Single Post
Old 12-09-2015, 10:43 AM   #4
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
I vaguely recall asking for that functionality a couple of years ago as an addition to the CSS spec, and the CSS folks suggested that there's something something coming in a future update that could provide it. I don't remember what, exactly—maybe CSS rules that apply based on whether something is the first element in a given flow to appear on a page. So eventually, this might be possible.

If you just want a margin there and don't care about it being padded to a particular color, you could use margins on the page itself (in readers that support it, such as iBooks).

You might also be able to use positive and negative margins on paragraphs, but there's a risk that you might end up with stuff cut off at the bottom of the page if you do that, so it is a tradeoff.

If you're willing to go EPUB 3, you can probably also do this with some sophisticated JavaScript.
dgatwood is offline   Reply With Quote