HighDots Forums  

suppress header and footer on print()

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss suppress header and footer on print() in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil Jarman
 
Posts: n/a

Default suppress header and footer on print() - 02-03-2006 , 09:20 AM






Hi,

I would like to allow users to print a page, but I want to suppress the
header and footer that appear by default.

I gather its done with a style sheet.

Please advise.

Many Thanks,

NEIL



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-03-2006 , 11:03 AM






Neil Jarman wrote:

Quote:
I would like to allow users to print a page, but I want to suppress the
header and footer that appear by default.

I gather its done with a style sheet.
http://www.w3.org/TR/html4/present/s...tml#adef-media
http://www.w3.org/TR/CSS2/media.html

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
Neil Jarman
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-03-2006 , 11:28 AM




"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

Quote:
Neil Jarman wrote:

I would like to allow users to print a page, but I want to suppress the
header and footer that appear by default.

I gather its done with a style sheet.

http://www.w3.org/TR/html4/present/s...tml#adef-media
http://www.w3.org/TR/CSS2/media.html

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/
Home is where the ~/.bashrc is
Hi David,

Thanks for these - very inforative, but I don't see the answer to my problem
yet ...

Neil




Reply With Quote
  #4  
Old   
Stan Brown
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-03-2006 , 11:48 AM



Fri, 3 Feb 2006 14:20:50 -0000 from Neil Jarman
<neil (AT) tNOiSPAMvPLEASEy (DOT) co.uk>:
Quote:
I would like to allow users to print a page,
Congratulations! Mission accomplished! Every browser can already do
this., if it's on a device where a printer can be attached.

Quote:
but I want to suppress the
header and footer that appear by default.
Sorry, you can't. Those are supplied by the browser, though usually
the user can alter them in preferences.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you


Reply With Quote
  #5  
Old   
Chris Beall
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-03-2006 , 01:47 PM



Neil Jarman wrote:
Quote:
Hi,

I would like to allow users to print a page, but I want to suppress the
header and footer that appear by default.

I gather its done with a style sheet.

Please advise.

Many Thanks,

NEIL


Neil,

I think the other responders may have misinterpreted your question, so
I'll give it a shot...

I'll speculate that you are using Windows and IE. When a page is
printed from IE, IE automatically adds a one-line header and footer to
the page. This has nothing to do with the web page itself (HTML and
CSS) but is provided, free, by the browser. Netscape Navigator has a
similar facility. Typically, the information in the header/footer
includes the URL, date, page x of y, or similar information.

For IE:
File
Page Setup...
Blank out everything in the Header and Footer fields
OK

(When you decide you want a Header or Footer again, click on the "?" in
the upper right corner of the same popup window, then click on the
Header or Footer field to see a list of the variables that you can use.)

For Netscape (Firefox is probably similar, but I didn't check):
File
Page Setup...
Margins & Header/Footer (tab)
At the bottom of the page, set each of the six entries to
'--blank--' by selecting that value from the pulldown list.

That's how to do it yourself, on your system. Since this has nothing to
do with the actual content of the web page, what happens on another
user's system will be entirely up to that user. Net: You don't have to
do anything to your web page at all, nor can you.

Chris Beall



Reply With Quote
  #6  
Old   
Neil Jarman
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-04-2006 , 06:57 AM



All:

Thanks for your various inputs.

The point is that I want a user t get a nice clean pricelist, not one with
the address at the bottom.

see www.colour-craft.net/pPricelist.asp?ID=1

Ultimately, the user could type this in and they will just get a new
pricelist, but sadly my client is rather difficult so I didn't want the
surplus address printed.

I can see from the w3 documents that this appears to be unobtainable, so
here I'll leave it!!

regards,

NEIL



Reply With Quote
  #7  
Old   
Barbara de Zoete
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-04-2006 , 07:04 AM



On Sat, 04 Feb 2006 12:57:52 +0100, Neil Jarman
<neil (AT) tNOiSPAMvPLEASEy (DOT) co.uk> wrote:

Quote:
The point is that I want a user t get a nice clean pricelist, not one
with
the address at the bottom.

I can see from the w3 documents that this appears to be unobtainable, so
here I'll leave it!!
You could always offer your visitors the pricelist in a PDF-file _next_ to
the html one. You have to ask yourself though what the real advantage of
that will be from the visitors point of view.

--
______PretLetters:

Reply With Quote
  #8  
Old   
Stan Brown
 
Posts: n/a

Default Re: suppress header and footer on print() - 02-04-2006 , 02:29 PM



Sat, 4 Feb 2006 11:57:52 -0000 from Neil Jarman
<neil (AT) tNOiSPAMvPLEASEy (DOT) co.uk>:
Quote:
The point is that I want a user t get a nice clean pricelist, not one with
the address at the bottom.
Then create it as a PDF file, and hope the user is willing to wait
for the download.

As for wanting to do it in the browser -- stop wanting that.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.