Neither span nor pre are good to be using for what you want to do, pre if I remember correctly is supposed to be for keeping things as they are (deprecated and replaced by xmp if I recall correctly, although these are both not elements that I am in the habit of using), span on the other hand is for text that is considered to be inside of something else that needs to have another style placed on it. Although you can say that a span has size and position etc. (and sometimes to get a result from ie with minimum of effort you might want to do this) the usage should be to give spans styling such as bold, i, u, fonts, colors, etc.
Stuff that is positioned etc. should probably be done via DIVS. As I said before I know that there are some implementations (prob. Half-assed) of css2+ media possibilities out there, and one of these is in IE, to get this to work might be problematic. I would try to follow something like this: http://www.4guysfromrolla.com/demos/printMediaCss.html i.e set your media attribute to be print on the stylesheet, give the span a specific class, then see if you can get page breaking when you print. So on the other subject, aviso is just an internal document format you mean, it's not a well-known document format output by some company etc. referencable by standards? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Petr Krenzelok Sent: Friday, December 05, 2003 1:46 PM To: [EMAIL PROTECTED] Subject: [REBOL] Re: page-breaks in html or pdf? Andreas Bolka wrote: >Friday, December 5, 2003, 11:49:00 AM, Petr wrote: > > > >>I chcecked out and did not find any way of how to issue something >>like page-break in html. It is probably not even possible. >> >> > >there are two CSS properties named page-break-before and >page-break-after. by using e.g. > > span style="page-break-after: always;" > >you could achieve what you want. however, i don't know which browsers >respect those attributes. > > > Thanks all to your answers! However - something like following did not work. Neither with IE 5.5 nor Mozilla 6.1a <span style="page-break-before:always"></span> btw - as we are here discussin html/css issues, I have following questions: - our document does not look good in mozilla. It uses absolute pixel positioning for each element. But drawn table (using following code) makes it shifted: <span style="left:0pt;top:000000pt;height:842pt;width:595pt"> <span style="left:022pt;top:099pt;height:100pt;width:266pt;border:001pt solid #000000;background-color:#FFFFFF"></span> <span style="left:288pt;top:099pt;height:100pt;width:266pt;border:001pt solid #000000;background-color:#E6E6E6"></span> <span style="left:022pt;top:198pt;height:596pt;width:533pt;border:001pt solid #000000;background-color:#FFFFFF"></span> I found the difference - IE, when using borders, still keeps the size of the rectangle intact and margins of the area are substracted from the inner area space, otoh Mozilla keeps internal box area intact and border is drawn outside such box. I would like also to know, what is the difference in using <span> and <pre> styles - I simply replaced above 'span styles by 'pre ones and now even Mozilla draws it correctly. -pekr- -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject. -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
