page-break with div

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • 195.229.241.2

    #1

    page-break with div

    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

    #2
    Re: page-break with div

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

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


    HTH,Adrian

    "195.229.24 1.2" <sarath.chandra @uaeexchange.co m> wrote in message
    news:bhko8m$l8h 4@news.emirates .net.ae...[color=blue]
    > 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
    >
    >
    >
    >[/color]


    Comment

    Working...