Let's say my browser window is 105 pixels high and I show a text block where each line of text is 10 pixels high - the browser will show me 10 and 1/2 lines in the window (i.e. The bottom line will be clipped vertically).
Is there some way to prevent this behavior and see only 10 lines?
The reason I want to do this is that I am using a HTML widget (UIWebView) to render a book that will be displayed with a page-flipping paradigm.
note: It looks like @page rules are supposed to help me accomplish this but they only seem to apply when printing to a printer.
div
, with a fixed height rounded down to the last line, and giving itoverflow: hidden
? – Donoghue