dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Page Break on Object

  1. #1
    Join Date
    Jan 2005
    Location
    USA
    Posts
    352

    Exclamation Page Break on Object

    I'd like to be able to say "if this object is going to get cut off between two pages, please just break before it."

    Is that possible? I know you can manually set a page break... or manually force it not to break... but I don't think either of those things are what I want.

    Any ideas?

    Thanks

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    Why aren't those the things you want? Can you clarify this?

  3. #3
    Join Date
    Jan 2005
    Location
    USA
    Posts
    352
    Quote Originally Posted by KDLA View Post
    Why aren't those the things you want? Can you clarify this?
    Basically this isn't a static page. It's pulling records from a database. The length of these "articles" for lack of a better word could be any length.

    Make sense?

  4. #4
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    (I'm assuming the object is really <object>.) I suggest you place a page break before the object (http://www.w3schools.com/Css/pr_print_pagebb.asp).

  5. #5
    Join Date
    Jan 2005
    Location
    USA
    Posts
    352
    Quote Originally Posted by KDLA View Post
    (I'm assuming the object is really <object>.) I suggest you place a page break before the object (http://www.w3schools.com/Css/pr_print_pagebb.asp).
    The object is actually a <div>.

    I don't want each individual div on a new page...unless that div was to be broken up to two pages. If that's the case, I want it to move that div to a new page.

    Make sense now?

  6. #6
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    There may be a javascript function that can help with that, but I wouldn't count on it. (In that each browser has different default print margins and such, as well as individual's printers.)

    You might try some server-side scripting and convert the article to PDF for consistency's sake (print and margins).
    Good luck!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles