Derrick Jackson said the following on 11/15/2010 03:42 PM:
This may be an easy question that I just cant figure out. I am using the HTML Helper Property to take care of managing my CSS and JS. Here is the issue. I have one CSS file for displaying the application in the browser and another CSS file for printing. I need to be able to specify the media type as print for one of the CSS files. Is there same way to do this with the HTML Helper Property?
Use the media attribute of the view:style tag:

<cfimport prefix="view" taglib="/MachII/customtags/view" />
<view:style href="ightbox" media="screen" />

Or add an media directive in the "attributes" argument of the method call:

<cfset getProperty("html").addStylesheet("lightbox", "media=screen") />

Refs:

http://trac.mach-ii.com/machii/wiki/HTMLHelperProperty#addStylesheetandthestylecustomtag

HTH,
.Peter

--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to