When I use position:relative I can't specify the exact position on the page
that the label prints as any positioning I specify is treated relative to
other page elements.  In this case I need the position to be absolute so
that whatever else is on the page the labels at the bottom of the page are
always printed in exactly the same place.

> -----Original Message-----
> From: Sandy Clark [mailto:[EMAIL PROTECTED]
> Sent: 30 June 2004 13:19
> To: CF-Talk
> Subject: RE: CSS layer positioning
>
>  
> In terms of what you are trying to do, you are using
> position:absolute which takes the div out of the flow
> control.  Try position:relative instead, which will keep the
> element in the page flow.
>   _____  
>
> From: James Smith
> I am trying to do some page layout with layers and CSS and it
> is driving me insane.  The printing position is crucial as it
> will be printing onto labels.
>
> 1) Is there any way I can control the page borders of the
> browser as if two people have different margins set then the
> printouts won't match up.
>
> 2) If I set up a layer with the following code
>
>   <div id="RightLabel#right(OrderNumber,7)#"
>     style="position:absolute;
>     left:103mm;
>     top:#evaluate(283*(currentrow-1) + 223)#mm;
>     width:86mm;
>     height:54mm;
>     z-index:1;
>     border-color:##000000;
>     border-style:solid;
>     border-width:thin">
>
> Then page breaks are ignored and the second layer prints
> 506mm down the FIRST page, as each page is only 283mm long
> this results in the layer not getting printed at all.  
> Similarly if I use "top: 223mm" then page breaks are still
> ignored and all the layers are printed in the same place on
> the first page.
>
> These layers are printed from a cfoutput with several records
> creating code in the format
>
> Layer
> Pagebreak
> Layer
> Pagebreak
>
> And so on, but still all layers are treated as if they are on
> the same page.
>
> Any one know how to fix this behaviour?
>
> --
> James Smith
> [EMAIL PROTECTED]
>   _____  
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to