HighDots Forums  

What is the inverse of @print?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss What is the inverse of @print? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hendrik Maryns
 
Posts: n/a

Default What is the inverse of @print? - 12-10-2008 , 08:04 AM






Hi all,

I know I can specify attributes to be used only in print by using
@print. Can I do the inverse, like have attributes that are only used
when *not* printing?

I am thinking of the following:

/* provide info about non-html links, following
http://www.euronet.nl/~tekelenb/WWW/userfriendlierhyperlinks/ */
a[type="application/pdf"]:after {
content: "(pdf)";
font-size: 80%;
vertical-align: super
}

which makes little sense in printing.

OTOH, maybe I should only do this when it is shown on screen and wrap it
in @screen. Comments?

Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Reply With Quote
  #2  
Old   
Sander Tekelenburg
 
Posts: n/a

Default Re: What is the inverse of @print? - 12-10-2008 , 11:54 AM






In article <ghoeo1$cl6$1 (AT) newsserv (DOT) zdv.uni-tuebingen.de>,
Hendrik Maryns <gtw37bn02 (AT) sneakemail (DOT) com> wrote:

Quote:
I know I can specify attributes to be used only in print by using
@print. Can I do the inverse, like have attributes that are only used
when *not* printing?

I am thinking of the following:

/* provide info about non-html links, following
http://www.euronet.nl/~tekelenb/WWW/userfriendlierhyperlinks/

[...] maybe I should only do this when it is shown on screen and wrap it
in @screen.
Yes, if some rule makes sense only for certain media types, target those
media types specifically. (In this example, that might well be more than
just @media screen.)

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>


Reply With Quote
  #3  
Old   
Helpful person
 
Posts: n/a

Default Re: What is the inverse of @print? - 12-10-2008 , 01:13 PM



On Dec 10, 8:04*am, Hendrik Maryns <gtw37b... (AT) sneakemail (DOT) com> wrote:
Quote:
Hi all,

I know I can specify attributes to be used only in print by using
@print. *Can I do the inverse, like have attributes that are only used
when *not* printing?

I am thinking of the following:

/* provide info about non-html links, followinghttp://www.euronet.nl/~tekelenb/WWW/userfriendlierhyperlinks/*/
a[type="application/pdf"]:after {
* * * * content: "(pdf)";
* * * * font-size: 80%;
* * * * vertical-align: super

}

which makes little sense in printing.

OTOH, maybe I should only do this when it is shown on screen and wrap it
in @screen. *Comments?

Cheers, H.
--
Hendrik Marynshttp://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:http://www.catb.org/~esr/faqs/smart-questions.html
I always find it easiest (especially for debuging and reading) to have
separate style sheets for the different media. However, I only use
screen and print.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.