473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Page stationery in CSS

Hi,

I'm trying to create a print layout for my web content. The stationery for
the printed sheet contains four images, each to be put in one of the printed
page's four corners:

|--------------|
|***** ###|
| |
| |
| |
| |
| |
| |
|=== ~~|
|--------------|

So far I thought the @Page directive would do the job. Apparently it
doesn't. The images only appear on the first page. What am I doing wrong
here?

Thanks for enlightening me
Axel Dahmen

----------------------
This is the code I'm using:

@media print
{
.printImg
{
display: inline;
position: absolute;
z-index: -1;
}

#ltImg
{
left: 0;
top: 0;
}

#rtImg
{
right: 0;
top: 0;
}

#lbImg
{
left: 0;
bottom: 0;
}

#rbImg
{
right: 0;
bottom: 0;
}
#Letter_divPage
{
border: 0;
width: 100%;
margin: 0;
z-index: -2;
}

#Letter_divAddress, #Letter_divContent
{
background-color: transparent;
z-index: 2;
}
}
@page
{
position: relative;
margin: 0;
padding: 0;
}


Aug 7 '06 #1
2 1358
Axel Dahmen wrote:
Hi,

I'm trying to create a print layout for my web content. The stationery for
the printed sheet contains four images, each to be put in one of the printed
page's four corners:

|--------------|
|***** ###|
| |
| |
| |
| |
| |
| |
|=== ~~|
|--------------|

So far I thought the @Page directive would do the job. Apparently it
doesn't. The images only appear on the first page. What am I doing wrong
here?
It seems to me that even though you have the images styled properly,
there is still the problem that each element exists only once - so is
printed only once. It's true that because of your CSS, the images
should snap to the bounds of whichever page is being printed - but my
guess is that the browser isn't calculating this.

Have you tried position: fixed, rather than position: absolute, for the
images that you want on every page? That would make more sense to me
than absolute.

Jeremy
Aug 9 '06 #2
Yeah, tried this, but to no avail... :/
-------------
"Jeremy" <je****@pinacol.comschrieb im Newsbeitrag
news:HebCg.144$xB.80@fed1read10...
Axel Dahmen wrote:
Hi,

I'm trying to create a print layout for my web content. The stationery
for
the printed sheet contains four images, each to be put in one of the
printed
page's four corners:

|--------------|
|***** ###|
| |
| |
| |
| |
| |
| |
|=== ~~|
|--------------|

So far I thought the @Page directive would do the job. Apparently it
doesn't. The images only appear on the first page. What am I doing wrong
here?

It seems to me that even though you have the images styled properly,
there is still the problem that each element exists only once - so is
printed only once. It's true that because of your CSS, the images
should snap to the bounds of whichever page is being printed - but my
guess is that the browser isn't calculating this.

Have you tried position: fixed, rather than position: absolute, for the
images that you want on every page? That would make more sense to me
than absolute.

Jeremy

Aug 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tom Szabo | last post by:
Hi All, I need some advice on how to split a page where a top section, something like a banner stays stationery, and the rest can be scrolled. Normally this would be done using framesets, two...
1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
7
by: TLMM | last post by:
I have an HTML page which is a newsletter. I want to be able to add it to an email message so I can email it to people. I want it to be in the body of the email, not sent as an attachment. There...
32
by: sandy | last post by:
I have a hobby website at: http://www.montana-riverboats.com which also resolves as: http://montana-riverboats.com ...without the www. One address has a Google page rank of three. The other...
1
by: John | last post by:
Hi I am printing invoices on an oki dot matrix printer using continuous stationery. The problem is that the stationery page height is only 8" which does not match with any of the page size...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
6
by: windandwaves | last post by:
Hi Folk Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide...
1
by: Charles | last post by:
Can anyone suggest additional code for Outlook Express messages that would prevent the printing of the stationery, just the message (to save printer resources)
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.