Confused on how to use @media.

Giganews Newsgroups
Subject: Confused on how to use @media.
Posted by:  Viken Karaguesian (vike…@aol.com)
Date: 8 Dec 2005

Hello all,

I'm a little confused on how to implement @media to make some web pages
print better. From what I've been able to read so far, I need to set
the @media rules as the top items in my CSS. So I would write something
like (not sure of the formatting here):

@media print {

body { blah blah blah }; (does a semi-colon go here?)

div.whatever { visibility: hidden }

}

OK, so once I have set different parameters for print in my CSS, how do
I implement that in the HTML document? I've read a lot about how to use
@import in the <head> but I can't find anything (that I can understand)
on how to implement @media in the html document.

Thanks in advance for any help.

Viken K.

Replies