SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2003
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Page-Breaks with CSS and ASP - HELP!

    Here's the problem:

    I have to generate a series of single pages for print, (all with an identical layout), but with different content culled from an Access d/b. I have an ASP query pulling the records from the d/b and displaying them on screen with a loop. Each section of layout is in <DIV> tags defined in linked spreadsheets (one for screen, one for print).

    Everything works fine on screen, but I cannot get the page breaks defined in the print.css to occur within the ASP loop. For example, let's say my query generates 8 records - therefore 8 pages. When I print (or print preview), all of the 8 pages overprint on the first page, followed by 7 blank pages.

    I have pounded my head for hours - I've even tried inserting a blank <div> with nothing but a "page-break-after:always" defined in various places in the loop (and outside the loop) and the result is always the same.

    Any insight?

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svj
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    position: absolute ?

  3. #3
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could we have a link, or a look at your asp code + css ?
    redux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


Bookmarks

Posting Permissions

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