Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: page-breaks in html or pdf?

From: AJMartin:orcon at: 24-Dec-2003 22:50

I have my scripts insert this HTML (using CSS): <br style="page-break-after: always" /> It's placed at the start of each "page" after the first "page", using a Rebol script fragment like: First_Page?: true ;... ; Inside page creation loop: either First_Page? [ First_Page?: none ] [ <br style="page-break-after: always" /> ] I also make sure that I use this tag: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> for each page, to make sure the MS IE switches into the right mode. If it's not present, MS IE 6 interprets HTML and CSS as if it were an older browser complete with bugs! I also have two different media sections in my .css stylesheet, like: @media screen { body { background: url(Wiki.jpg) #FFFFFC repeat-y fixed; color: #000000; margin: 0px; padding: 0px; } .Left-Column { position: absolute; } ... } and @media print { .Left-Column { display: none; } ... } I hope that helps! Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/