Salut,

It's a strange question for the list but I am going to give answering  
it a go because I can't sleep.

First off I looked at your HTML (I don't really care which fancy way  
you got to it - that's the bare bones).

...
</div>
<br>
<div  class='Notice' style='left:0cm'>....

<br> is not a 'page break'. "The <br> tag inserts a single line break.  
" W3schools.

However it does seem possible to have page breaks, recognise by  
printers, in HTML pages via CSS. This CSS can be applied to many tags  
as much as it can be applied to line-breaks (<br>).

Have a look: http://www.boutell.com/newfaq/creating/pagebreak.html , 
http://www.cybertext.com.au/tips_HTML_pagebreak.htm 
  , and this one seems to be doing something similar to you 
http://www.velocityreviews.com/forums/t164455-how-to-add-a-page-break-to-a-html-page.html

Try this:

div.Notice {
        width:10.03cm;
        height:2.50cm;
        position:relative;
        page-break-after: always;
}

or just read one of the links I provided before.

Let me know if that helps. I can't believe I even tried to answer that  
with all the mumbo-jumbo at the start of the message.

Au revoir, CB




On 16/06/2010, at 5:45 AM, Stéphane Carnot wrote:

> Hi,
>
> Still stucked.
>
> Really nobody has an idea ?
>
> JYves
>
>
>
> ________________________________
> De : Stéphane Carnot <[email protected]>
> À : [email protected]
> Envoyé le : Mar 8 juin 2010, 10h 31min 46s
> Objet : IE8, CSS 2.1 & page-break-inside: avoid problem
>
>
> Hi all,
>
> This is my 1st post in this list, so please forgive me if i forgot  
> something :-)
>
> - Windows Vista Business SP1 (French) Microsoft, Internet Explorer  
> 8.0 6001.18904 -
>
> I have a desktop application which generates html pages from SQL data.
> Then, with a WebBrowser object, I send these pages to print or  
> preview (Exec Web method).
>
> I can’t make the CSS 2.1 page-break-inside work
>
> However with IE 8 this should work (Trident - Comparison of layout  
> engines (Cascading Style Sheets)).
> I’ve read the W3 documentation, Microsoft documentations (Defining  
> Document Compatibility, page-break-inside Attribute |  
> pageBreakInside Property) and Vitaly Sharovatov’s article (IE8  
> Rendering Modes theory and practice) and I added in my header:
> Code :
> <meta http-equiv="X-UA-Compatible" content="IE=8"/>
>
> But it doesn’t work either.
>
> I’m totally newbie with CSS  :-(
>
> Any hint?
> TIA
> JYves
>
> My test files  :
> http://obaobaobao.free.fr/sample01.html
> http://obaobaobao.free.fr/sample02.html
> http://obaobaobao.free.fr/sample03.html
>
>
>
> ______________________________________________________________________
> css-discuss [[email protected]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to