Jump to content

Styling for different medias (print etc)


random1

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.