Jump to content

Styling for different medias (print etc)


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.