Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing With StyleSheets 1

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have a search results page thats looks lovely with my
style sheet on a browser but it is not printed with all the the header and background formatting. I print via the right click print option when over the middle frame containing my formatted search results. The style sheet is link imported into the top of my asp middle frame search results page:-

<LINK REL=&quot;StyleSheet&quot; HREF=&quot;mystylesheet.css&quot; TYPE=&quot;text/css&quot;&quot;>

I then use styles on table headers, cells and rows.
Is there something special I need to do to get the stylesheet applied at print stage as well as on the browser display?



 
Very useful page.

I have changed my link to :-

<LINK REL=&quot;StyleSheet&quot; HREF=&quot;mystylesheet.css&quot; TYPE=&quot;text/css&quot; media=&quot;all&quot;>

and it has helped although the background elements of a table cell still did not get printed. I then found the option in Internet Explorer than allows you to specify
'Print background colors and images'.

To switch it on select:-
Tools---Internet Options---Advanced---Print Background
Colors & Images

Really I need a method of forcing this to be set in the html. Anybody know how?
 
>> Really I need a method of forcing this to be set in the html. Anybody know how?

&quot;Force&quot; is generally something you can not do where browsers are concerned. The reason why the user is given ultimate control over if and how things are displayed and printed is that it's the user's browser and printer, not yours.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
dwarfthrower ( love the handle by the way ), I thought that might be the case. I guess the solution in my case for my formatted headings with a background colour is to change the headings to an image using Fireworks. That way it isn't a background thing and it will be printed.
 
That way it isn't a background thing and it will be printed.
That way it isn't a background thing and is more likely to be printed.

Probably your best bet if you absolutely must-have the coloured background on your headings. I don't know... Coloured backgrounds are fine and dandy on my web browser, but whenever I sit down to read off paper I like black text on a white background.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top