random1 Posted November 27, 2008 Share Posted November 27, 2008 Hey All, I'm trying to get my site's single CSS stylesheet to format to different medias (be printable). I have some code: @media print { BODY { font-size: 10pt } } @media screen { BODY { font-size: 12pt } } @media screen, print { BODY { line-height: 1.2 } } from: http://www.w3.org/TR/CSS2/media.html Is it possible to simply include an external stylesheet and have different medias? Link to comment https://forums.phpfreaks.com/topic/134435-styling-for-different-medias-print-etc/ Share on other sites More sharing options...
dropfaith Posted November 27, 2008 Share Posted November 27, 2008 i use this kind as stated on the link you gave main.css is like so @import url("print.css") print; @import url("screen.css") screen; @import url("handheld.css") handheld; [code] i also include anyu styles that are on all shees here on the main.css Link to comment https://forums.phpfreaks.com/topic/134435-styling-for-different-medias-print-etc/#findComment-700158 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.