List Info

Thread: Question about CSS media




Question about CSS media
user name
2006-09-07 15:20:57
I am using default template, and printed the Main page (for
the first time).
Only the "pagecontent" portion is printed (which
is fine). But the font is
my browser's default font, which is different from what is
defined in
jspwiki.css.

I searched the web and found it is because the CSS setting
media="screen,
projection" but not "print". There is also
an jspwiki_print.css, but no idea
when it will be used. What is the mechanism behind selecting
different CSS
for screen or print? How do I enable the print css?


  Steve Lihn, Enterprise Web Infrastructure, Merck &
Co., Inc.,   
  Tel: (908) 423 - 4441

  


------------------------------------------------------------
------------------
Notice:  This e-mail message, together with any attachments,
contains
information of Merck & Co., Inc. (One Merck Drive,
Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be
known
outside the United States as Merck Frosst, Merck Sharp &
Dohme or MSD
and in Japan, as Banyu - direct contact information for
affiliates is 
available at http://www
.merck.com/contact/contacts.html) that may be 
confidential, proprietary copyrighted and/or legally
privileged. It is 
intended solely for the use of the individual or entity
named on this 
message. If you are not the intended recipient, and have
received this 
message in error, please notify us immediately by reply
e-mail and then 
delete it from your system.

------------------------------------------------------------
------------------
_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
Question about CSS media
user name
2006-09-07 15:48:10
The jspwiki_print.css is automatically loaded when printing,
cause it's  
media attribute is set to "print"
(see commonheader.jsp)

I recently noticed the same ''problem'' with the brushed
template and  
decided to change the media
setting of the jspwiki.css to
media="screen,print".

In this way, all style settings of the normal screen are
getting  
printed,
unless they get overwritten by the print css.



dirk


On 07 Sep 2006, at 17:20, Lihn, Steve wrote:

> I am using default template, and printed the Main page
(for the first  
> time).
> Only the "pagecontent" portion is printed
(which is fine). But the  
> font is
> my browser's default font, which is different from
what is defined in
> jspwiki.css.
>
> I searched the web and found it is because the CSS
setting  
> media="screen,
> projection" but not "print". There is
also an jspwiki_print.css, but  
> no idea
> when it will be used. What is the mechanism behind
selecting different  
> CSS
> for screen or print? How do I enable the print css?
>
>
>   Steve Lihn, Enterprise Web Infrastructure, Merck
& Co., Inc.,
>   Tel: (908) 423 - 4441
>
>
>
>
>
------------------------------------------------------------
----------- 
> -------
> Notice:  This e-mail message, together with any
attachments, contains
> information of Merck & Co., Inc. (One Merck Drive,
Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which
may be known
> outside the United States as Merck Frosst, Merck Sharp
& Dohme or MSD
> and in Japan, as Banyu - direct contact information for
affiliates is
> available at http://www
.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally
privileged. It is
> intended solely for the use of the individual or entity
named on this
> message. If you are not the intended recipient, and
have received this
> message in error, please notify us immediately by reply
e-mail and then
> delete it from your system.
>
>
------------------------------------------------------------
----------- 
> -------
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-usersecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>

_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )