Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CSS and Windows DPI Setting.

0 views
Skip to first unread message

Kiran Math

unread,
Feb 28, 2003, 10:00:46 AM2/28/03
to
Problem : Printing from web browser (IE ) with different window DPI setting
( Font size).

I have a very simple css file.
.A1001{FONT-WEIGHT: normal;FONT-SIZE: 12px;FONT-FAMILY: Arial}
.A1002{FONT-WEIGHT: normal;FONT-SIZE: 15px;FONT-FAMILY: Arial}

Now when I use this CSS file in the HTML page and print the page from IE
6.0 ,
notice the following :

- If the windows is using DPI setting - Normal ( 96 DPI)
The printed page has a bigger font size.

-If the windows is using DPI setting - Large (120 DPI)
The printed page has a smaller font size.


Questions -

How to make the printed page consistent ?


Thank you

Kiran Math

PeterMcC

unread,
Mar 1, 2003, 4:35:16 AM3/1/03
to
Kiran Math wrote:
> Problem : Printing from web browser (IE ) with different window DPI
> setting ( Font size).

It sounds as though you may need @media print. Have a look at:
http://www.webreview.com/style/2000/01_07_00.shtml

HTH

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Kiran Math

unread,
Mar 2, 2003, 11:45:59 AM3/2/03
to
PeterMcC

Thanks . Yes that helped when I used a different stylesheet for printing and
using physical dimension like points, mm, etc. instead of px as
96 px is not always 1 inch (72pt).

Thank you,

Kiran Math

Cybarber

unread,
Mar 2, 2003, 8:03:09 PM3/2/03
to
For IE6 there are 4 new properties which query the DPI and whereby one can
zoom the page
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/devicexdpi.asp

and an article:

http://msdn.microsoft.com/workshop/author/dhtml/overview/highdpi.asp


Cybarber


"Kiran Math" <kira...@hotmail.com> schreef in bericht
news:d7e9eae0.03022...@posting.google.com...

Kiran Math

unread,
Mar 6, 2003, 11:03:58 AM3/6/03
to
Cybarber,

Thank you very much. I found both the article very useful.

Kiran Math


0 new messages