page-break with div

Discussion in 'Javascript' started by 195.229.241.2, Aug 16, 2003.

  1. Dear group,
    I'm using <DIV> tags to display some content with absolute positioning.
    The content sometimes goes more than 1 page. So i would like to
    have page break after 1 set of content is printed on a page. Its like this

    <DIV id=A style="position:absolute; top:0px; left:0px; width:100px;
    height:100px">
    Item One
    </DIV
    --do the page break
    <DIV id=A style="position:absolute; top:0px; left:0px; width:100px;
    height:100px">
    Item Two
    </DIV

    This should ensure that always the content is printed on the same position
    but in new page.
    The problem is how to do the page-break.
    Any help please ..
    tia
    sarath
    195.229.241.2, Aug 16, 2003
    #1
    1. Advertising

  2. 195.229.241.2

    news.tdl.com Guest

    I use this to Page Break, works well for me.

    <p STYLE="page-break-after: always"></p>


    HTH,Adrian

    "195.229.241.2" <> wrote in message
    news:bhko8m$...
    > Dear group,
    > I'm using <DIV> tags to display some content with absolute positioning.
    > The content sometimes goes more than 1 page. So i would like to
    > have page break after 1 set of content is printed on a page. Its like this
    >
    > <DIV id=A style="position:absolute; top:0px; left:0px; width:100px;
    > height:100px">
    > Item One
    > </DIV
    > --do the page break
    > <DIV id=A style="position:absolute; top:0px; left:0px; width:100px;
    > height:100px">
    > Item Two
    > </DIV
    >
    > This should ensure that always the content is printed on the same position
    > but in new page.
    > The problem is how to do the page-break.
    > Any help please ..
    > tia
    > sarath
    >
    >
    >
    >
    news.tdl.com, Aug 16, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sid Ismail

    Re: page-break with div

    Sid Ismail, Aug 16, 2003, in forum: HTML
    Replies:
    0
    Views:
    515
    Sid Ismail
    Aug 16, 2003
  2. Replies:
    12
    Views:
    959
  3. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    745
  4. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    186
    David Dorward
    Jun 1, 2005
  5. mscir
    Replies:
    3
    Views:
    307
    Martin Honnen
    Jun 26, 2005
Loading...

Share This Page