Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2010, 07:01 AM   #1
Gray Eminence
eBook Designer
Gray Eminence began at the beginning.
 
Gray Eminence's Avatar
 
Posts: 17
Karma: 10
Join Date: Jul 2010
Location: Brussels
Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer
Some code help

Hello,



I do try to keep 10 consecutive lines ALWAYS on the same page. They must stay together and if needed, report the first lines to the next pages.

I tried many things, but nothing seems working in ADE display

Any help suggestion is greatly appeciated.

Cheers,
GE

Current non working CSS code : .nobreak {page-break-before:;page-break-after:;page-break-inside:} (and all variant tested)
Gray Eminence is offline   Reply With Quote
Old 12-31-2010, 07:59 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Gray Eminence View Post
Hello,



I do try to keep 10 consecutive lines ALWAYS on the same page. They must stay together and if needed, report the first lines to the next pages.

I tried many things, but nothing seems working in ADE display

Any help suggestion is greatly appeciated.

Cheers,
GE

Current non working CSS code : .nobreak {page-break-before:;page-break-after:;page-break-inside:} (and all variant tested)
Page?
ADE considers a page to be 1024 chars (unless terminated sooner).

Screen?
Many things control how much will fit on the screen (besides the screen size). Body Margins, Padding, Border, Line spacing (Paragraph spacing is also a Margin,Padding,border)

It might be easier to keep short lines together by using Break
Code:
<p class=foo> line1 <br />Line2<br />Line3<br />last_line. Whee!</p>
theducks is offline   Reply With Quote
Advert
Old 12-31-2010, 08:17 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Gray Eminence View Post
Current non working CSS code : .nobreak {page-break-before:;page-break-after:;page-break-inside:} (and all variant tested)
Have you tried this?:

Code:
.nobreak {page-break-inside: avoid;}
Jellby is offline   Reply With Quote
Old 12-31-2010, 09:18 AM   #4
Gray Eminence
eBook Designer
Gray Eminence began at the beginning.
 
Gray Eminence's Avatar
 
Posts: 17
Karma: 10
Join Date: Jul 2010
Location: Brussels
Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer
Thank you to both of you

The solution is ..... combination of BR and page-break-inside

Gray Eminence is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
QR code for MR Donnageddon Lounge 81 10-04-2011 06:28 PM
code help AWOL Sigil 7 11-19-2010 11:50 AM
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM
Some help with code Crusader ePub 5 01-01-2010 10:23 PM
Hi all — and see the code sigizmund Introduce Yourself 2 12-18-2009 02:53 AM


All times are GMT -4. The time now is 05:32 AM.


MobileRead.com is a privately owned, operated and funded community.