How to prevent internet explorer from inserting a page break before multi page image -


i'm running ie11 on windows 8.1 , cant seem print following without inserting page break before image:

<!doctype html> <html> <head> </head> <body>    <p>text</p>    <img src=".....\pic.gif" /> </body> </html> 

where pic.gif image height greater size of page trying print to. if print in in chrome, show "text" , below start printing image. ie11 insert page break thing on page 1 of printed document "text" followed ton of white space. if resize image small enough fit on 1 page doesn't insert page break, resizing image not option. - aware of page-break-before: avoid; css makes no difference - still inserts page break.

is bug in ie or there other way force it? seems me problem have bitten many people in past haven't had luck finding others problem. can reproduce on many computers i'm sure not out of whack in regard.

any appreciated, thanks.

put <p> , <img> inside <div> add div's css

page-break-after: avoid;  page-break-before: avoid;  page-break-inside: avoid; 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -