HighDots Forums  

Printing background images

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


Discuss Printing background images in the Cascading Style Sheets forum.



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

Default Printing background images - 02-23-2005 , 04:42 AM






Hi

I used some css class in my web page for graphic design (with url),
now when I am sending the page to printer all the background images are gone )-:

?
10x

Reply With Quote
  #2  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Printing background images - 02-23-2005 , 05:21 AM






navavil (AT) netvision (DOT) net.il (navavil) wrote:

Quote:
I used some css class in my web page for graphic design (with url),
now when I am sending the page to printer all the background images are gone )-:
By default many browsers don't print background images or colours.
This is irregardless of whether the background is specified in CSS or
HTML. You can turn on the printing of backgrounds in your browser
settings and so can your users but you, as an author, can not force
your users to do so.

You'll probably want to make a print stylesheet that provides an
attractive print presentation that does not rely on backgrounds. You
can also use the print stylesheet to do things like suppress styles
for links (which means nothing when printed - can't click a piece of
paper) and maybe totally hide portions of the page (advertising,
navigation, etc.).

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #3  
Old   
Christoph Paeper
 
Posts: n/a

Default Re: Printing background images - 02-23-2005 , 09:58 AM



*Steve Pugh* <steve (AT) pugh (DOT) net>:
Quote:
By default many browsers don't print background images or colours.
I just realized, that this is another counter-argument for most CSS image
replacement techniques. (Although you should usually be able to handle it
with extra rules for print media.)

--
"Space may be the final frontier,
but it's made in a Hollywood basement."

Red Hot Chili Peppers - Californication


Reply With Quote
  #4  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Printing background images - 02-23-2005 , 10:07 AM



Christoph Paeper <christoph.paeper (AT) nurfuerspam (DOT) de> wrote:
Quote:
*Steve Pugh* <steve (AT) pugh (DOT) net>:

By default many browsers don't print background images or colours.

I just realized, that this is another counter-argument for most CSS image
replacement techniques.
So did I as I wrote that post. ;-)

Quote:
(Although you should usually be able to handle it
with extra rules for print media.)
I have seen some sites where a logo is included at the bottom of the
page with display: none; in the screen stylesheet and position:
absolute in the print stylesheet. Yuck.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #5  
Old   
navavil
 
Posts: n/a

Default Re: Printing background images - 02-24-2005 , 01:44 AM



Steve Pugh <steve (AT) pugh (DOT) net> wrote

Quote:
navavil (AT) netvision (DOT) net.il (navavil) wrote:

I used some css class in my web page for graphic design (with url),
now when I am sending the page to printer all the background images are gone )-:

By default many browsers don't print background images or colours.

Ste

Now i am confused -
Is it possible to place images not as background useing css ?
ex: <div Style="XXXXX"></div>

10x


Reply With Quote
  #6  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Printing background images - 02-24-2005 , 04:12 AM



navavil (AT) netvision (DOT) net.il (navavil) wrote:
Quote:
Steve Pugh <steve (AT) pugh (DOT) net> wrote

navavil (AT) netvision (DOT) net.il (navavil) wrote:

I used some css class in my web page for graphic design (with url),
now when I am sending the page to printer all the background images are gone )-:

By default many browsers don't print background images or colours.


Now i am confused -
Is it possible to place images not as background useing css ?
ex: <div Style="XXXXX"></div
No (well not counting the content property which isn't supported by IE
so can't be used on the WWW except for trivial stuff that doesn't
matter if 80-90% of users never see it).

Is your image part of the content or just decoration? If it's part of
the content then put it in the HTML where it belongs. If it's just
decoration then consider a different decoration scheme for the printed
version.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


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.