css - Designing a Page for Screen and Print Medias - Font-Size -



css - Designing a Page for Screen and Print Medias - Font-Size -

i've created study shown on screen , should printable well. application has back upwards ie 6.0 too.

what font-sizes should using?

i've read, should using em screen media (web page) , pt print media (i know em scalable , pt isn't...).

how design such page in terms of css elements?

e.g. creating separate css file print media , duplicating css classes there , modifying font-size? much duplication.

isn't there improve way?

thanks

you don't need duplicate much.

create study web.

then, in body of stylesheet add together reference print styles, so

@media print { div#content {background:#fff; width:90%; font-family:serif; font-size:12px;} div#header, div#insideheader, div#topnav, div#footer, div#navcontainer, p.pic img {display:none;} div#main {border:none; background:none;} {color:black;} }

in illustration above,

setting background-color white , extending content fill width of of page removing of pieces, nav , footer, pics, etc. changing link colors setting font serif font, easier read print, , size of 12px, pretty standard.

css printing font-size

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -