Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / February 2005



Tip: Looking for answers? Try searching our database.

Printing background images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
navavil - 23 Feb 2005 09:42 GMT
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
Steve Pugh - 23 Feb 2005 10:21 GMT
>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

Signature

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

Steve Pugh        <steve@pugh.net>        <http://steve.pugh.net/>

navavil - 24 Feb 2005 06:44 GMT
> >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
Steve Pugh - 24 Feb 2005 09:12 GMT
>> >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 )-:
[quoted text clipped - 4 lines]
>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

Signature

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

Steve Pugh        <steve@pugh.net>        <http://steve.pugh.net/>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.