It depends on how complex your "content" is. I've had a few unsuccessful attempts at this as it gets too messy. Assuming your "content" contains html (like news), it means you have to ignore tags, but your tags may have images, in them, etc etc, further adding to your alignment woes. Also, splitting tags may mean that a <tag> may be without a </tag> on the same page. Doing it automatically is just too cumbersome.
One technique I employ now is using a <!--PAGE--> comment tag inside the html content, and then split the page using this delimiter. It works quite well, allows me to break within a table or if the table runs over, it means I have to close the table and open another one. Ultimately, it's not ideal as it requires manual labour, but if you're dealing with HTML content, that's the only way. It also allows you to remassage your pages relatively easily if you're swapping over templates. The "proper" way to do it is if you're original content is XML, then you would write XSLT to chunk up the pages. I just assume not because it's unlikely that you would. This problem of decoupling presentation with representation is hard to avoid if your original content is already coupled to pre-existing presentation. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi there , i have an issue trying to split content into pages , we have a > popup with content and a background image with a set height , when there is > more content the background repeats , theoretically i'd want to split the > content into pages after a given length or line length or where it meets > the background image height how can i do this ? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php