Printing with IE and CSS

G

Guest

Hello,

I've written a web page which uses a CSS stylesheet.

Using IE (version 6.0.2800.1106), the page looks OK and uses the stylesheet
to format the page. However, when I print the page, it seems like none of the
CSS is being "used" and the resulting print-out is nothing like it looks on
the screen.

I've added the media="screen, print" clause to the stylesheet link line in
the HTML file.

An example of the CSS file I'm using:

body { background: #FFFFFF; color: #333333; font-family: Verdana, arial;
width: 780px; }
td { font-size: 13px; font-weight: normal; }
h3 { font-size: 18px; color: #000000; font-weight: bold; margin: 0; padding:
0; }
h4 { font-size: 15px; color: #000000; font-weight: bold; margin: 0; padding:
0; }
h5 { font-size: 13px; color: #000000; font-weight: bold; margin: 0; padding:
0; }

An extract of my HTML page:

<table border="1" cellspacing="0" cellpadding="2">
<tr>
<td><h5>Do you have PO / Credit Application?</h5></td>
<td><input type="checkbox" name="C1" value="ON"></td>
</tr>

Thanks for any assistance,

Mark
 
R

Rob Parsons

Hi Mark. I tried testing printing from IE myself and found that the print
preview seemed to be lacking some options like use background colors (it
just seemed to look different from what I remember) so there may have been
an update that has clobbered this. I downloaded an update yesterday but
haven't completed the install (requires restart), so maybe this update will
solve your problem. So do a windows update first.
There seems to be alot of chatter here on the newsgroup about a certain
recent update causing problems.
 
G

Guest

Hi Mark. I tried testing printing from IE myself and found that the print
preview seemed to be lacking some options like use background colors (it
just seemed to look different from what I remember) so there may have been
an update that has clobbered this. I downloaded an update yesterday but
haven't completed the install (requires restart), so maybe this update will
solve your problem. So do a windows update first.
There seems to be alot of chatter here on the newsgroup about a certain
recent update causing problems.

Hello,

Thanks for the thought. As suggested, I performed a Windows Update and
installed 10 ( :-o ) updates. Unfortunately, it hasn't made any difference
- the printing looks exactly the same as it did previously and is ignoring
any of the CSS formatting I have written.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top