Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Conditions in CSS?


Message #1 by "Nyman, Robert" <Robert.Nyman@i...> on Fri, 11 Jan 2002 11:35:35 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C19AAA.58552F20
Content-Type: text/plain

Well, you can use this:
 
 
// For computer screens, the font size is 12pt.
@media screen {
   BODY {font-size:12pt;}
}
// When printed, the font size is 8pt.
@media print {
   BODY {font-size:8pt;}
}
 
 
http://www.msdn.microsoft.com/workshop/author/dhtml/reference/properties/med
ia_1.asp
<http://www.msdn.microsoft.com/workshop/author/dhtml/reference/properties/me
dia_1.asp> 
 
 
/Robert
 
 
 -----Original Message-----
From: Douglas J. Badin [mailto:DJBadin@m...] 
Sent: den 11 januari 2002 14:16
To: JavaScript HowTo
Subject: [javascript_howto] RE: Conditions in CSS?



In a limited fashion, I change style when I print something.  Maybe there is
more to this
 
<STYLE type="text/css" media="PRINT">
.NonPrintableArea
{
    DISPLAY: none;
}
</STYLE>
 
Doug
 
 

-----Original Message-----
From: Nyman, Robert [mailto:Robert.Nyman@i...] 
Sent: Friday, January 11, 2002 5:36 AM
To: JavaScript HowTo
Subject: [javascript_howto] Conditions in CSS?


 Is there a way to write conditions in CSS, and then apply appropriate
format?

For example, I'd like to write it something like this:
 
#theDiv{width:(navigator.appVersion == "Netscape")? "400px" : "200px"}
 
 
 
Also, does anyone know of any REALLY advanced online CSS tutorials/examples?
 
 
/Robert
 


 
 
..............................................................
robert nyman, technical research manager	
fryxellsgatan 4, s-114 25 stockholm	

ph	 +46 (0)8 506 31 500	
d	 +46 (0)8 506 31 510	
m	 +46 (0)733 50 22 09	
f	 +46 (0)8 506 31 599	
e	 robert.nyman@i... <mailto:robert.nyman@i...> 	
www	 http://www.ibizkit.se <http://www.ibizkit.se/> 	
..............................................................	
 

$subst('Email.Unsub'). 

$subst('Email.Unsub'). 



  Return to Index