homepage Welcome to WebmasterWorld Guest from 54.227.11.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Print CSS files - point sizes necessary?
Or will pixels do?
Hester




msg:1195359
 10:14 am on Feb 13, 2003 (gmt 0)

I've read somewhere that you should use point sizes for fonts when delivering a print-only CSS file. It's because printers use points and screens use pixels, right? And yet a stylesheet using pixels prints out perfectly. So is there any reason to change it to use points?

What would happen to carefully positioned divs?

Oh, and no comments that you shouldn't use pixels or absolute positioning please.

 

Mike12345




msg:1195360
 10:17 am on Feb 13, 2003 (gmt 0)

[webmasterworld.com...]
[webmasterworld.com...]
[webmasterworld.com...]

Try these :)

BlobFisk




msg:1195361
 10:18 am on Feb 13, 2003 (gmt 0)

Hi Hester,

When I create a print media CSS file I leave my font units at pixels, and like you said, I have found that it prints ok (I test on both Mac and PC).

On your point about absolutely positioned div's - many people alter their print css file to match the size of an A4 page and adjust their margins accordingly. I suppose that it's a matter of printing your current version and see if there are any problems with your current layout.

Hester




msg:1195362
 11:45 am on Feb 13, 2003 (gmt 0)

Oops, looks like I'm in the wrong forum. Sorry! Can the moderator move this to the CSS forum? Ta.

On your point about absolutely positioned div's - many people alter their print css file to match the size of an A4 page and adjust their margins accordingly. I suppose that it's a matter of printing your current version and see if there are any problems with your current layout.

That's exactly what I've done - using Print Preview. In my print CSS file I've removed elements that don't have a purpose when printed out, such as large blank areas of colour, menu links, etc, by using {display:none;}. Then I moved the rest of the contents left to fit the A4 page. (What if someone uses a different paper size though? Such as Legal, or A4 Landscape?)

BlobFisk




msg:1195363
 12:50 pm on Feb 13, 2003 (gmt 0)


What if someone uses a different paper size though? Such as Legal, or A4 Landscape?

It would be very difficult (nigh on impossible) to try and cater for some people's unusual setup. I'm not sure about the States, but certainly in Europe the vast majority of desktop printers default to A4 portrait.

theonliest




msg:1195364
 6:17 pm on Feb 13, 2003 (gmt 0)

if you defined your main content div as 100% on your print style sheet would the content not expand/collapse to fit on any printer setup?
This is just a shot in the dark btw, I've not really familiar with using printer stylesheets.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved