Log in

View Full Version : Equivalent CSS property for page-break-after in safari



SyedShabeer
12-02-2010, 12:05 PM
I have used "page-break-after" CSS property in my PHP script, it works fine in all browsers except safari. Please advise me if there is any equivalent CSS property for Safari browser. I'm in a hurry. Please let me know ASAP

Note: I have used the page-break property as a style within <BR> tag.

Beverleyh
12-02-2010, 01:26 PM
Without knowing what you're trying to do exactly, I can only guess that you should look into clearing floats?

traq
12-02-2010, 07:52 PM
Safari supposedly supports page-break-after.
Maybe some of these notes will help?


Note: You cannot use this property on absolutely positioned elements.
Note: Firefox, Chrome, and Safari do not support the property values "avoid", "left", or "right".

However, according to the css2 spec (http://www.w3.org/TR/CSS2/page.html#allowed-page-breaks), page-break-after and related properties are supposed to be applied to block-level elements (though they "may" be applied to anything). <br> is in inline element, so your results may vary (even more than usual, I mean; it seems that no browser completely supports this property).