PDA

View Full Version : printer media css


ricks99
11-06-2000, 11:38 AM
I'm trying to create a printer css to control the printed output of my HTML pages. I can't set the page margins correctly.
This is what I have, but the printed page doesn't use this margins...

page {
size: portrait
margin-top 1.5in;
margin-left 1.5in;
margin-right 1in;
margin-bottom .75in;
}

Can you help?

TIA,
fss@altavista.net

jog1973
06-28-2001, 03:27 PM
is it simply your syntax? it looks like you are creating a @page class
you left our some : and ; and @....

try this

@page {
size:8.5in 11in;
margin-top:1.5in;
margin-left:1.5in;
margin-right:1in;
margin-bottom:.75in;
marks:cross;
}

john

COBOLdinosaur
07-01-2001, 09:31 AM
An interesting exploration of CSS@ spport for page printing. I am curious though. What browser are you going to use this with. AFAIK there is no support for it in the major browsers.

Or did miss something?