HighDots Forums  

Prevent Images from being Split

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Prevent Images from being Split in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ree321@gmail.com
 
Posts: n/a

Default Prevent Images from being Split - 09-13-2006 , 01:09 AM






When there is a long image in the HTML it is being split over two pages
in the Print Preview rather than moving the image down to the next
page. Is there a way to get around this so the image will not be split?


Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Prevent Images from being Split - 09-13-2006 , 01:58 AM






ree321 (AT) gmail (DOT) com <ree321 (AT) gmail (DOT) com> scripsit:

Quote:
When there is a long image in the HTML it is being split over two
pages in the Print Preview rather than moving the image down to the
next page. Is there a way to get around this so the image will not be
split?
Technically there is:

img { page-break-inside: avoid; }

On the other hand, browsers that tend to split images probably don't support
the page-break-inside property (which is generally poorly supported).

There's no good solution. You could say page-break-before: always for the
image, which is well-supported, but that would be an unconditional break. A
small change in paper size or formatting of preceding content (due to
something in a user style sheet, for example) could easily cause a natural
page break a little before the image, and then you would have a few lines of
text on a fresh page, then the page break you asked for...

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.