Hi Mark,
The css parameter accept the following information :
* media to define the media (screen, print...) - There is a bug with
firefox if you specify print...
* rel to define if the stylesheet is alternate or not
* theme to define the title of the stylesheet, if several css
parameter specify the same theme, then all these stylesheets will
be used
Example :
<forrest:contract name="branding-css-links">
<forrest:property name="branding-css-links-input">
<css url="common.css" media="screen" rel="alternate stylesheet"
theme="default"/>
<css url="leather-dev.css" media="screen" rel="alternate
stylesheet" theme="default"/>
<css url="pelt.basic.css" media="screen" theme="Pelt"/>
<css url="pelt.screen.css" media="screen" theme="Pelt"/>
<css url="renard.css" media="screen" theme="Pelt"/>
<css url="pelt.print.css" media="print"/>
<css>/* Extra css */
p.quote {
margin-left: 2em;
padding: .5em;
background-color: #f0f0f0;
font-family: monospace;
}</css>
</forrest:property>
</forrest:contract>
Gives this :
<link href="themes/common.css" media="screen" rel="alternate stylesheet" title="default"
type="text/css" />
<link href="themes/leather-dev.css" media="screen" rel="alternate stylesheet"
title="default" type="text/css" />
<link href="themes/pelt.basic.css" media="screen" rel="stylesheet" title="Pelt"
type="text/css" />
<link href="themes/pelt.screen.css" media="screen" rel="stylesheet" title="Pelt"
type="text/css" />
<link href="themes/renard.css" media="screen" rel="stylesheet" title="Pelt"
type="text/css" />
<link href="themes/pelt.print.css" media="print" rel="stylesheet" title="pelt.print.css"
type="text/css" />
And everything is OK with firefox (this example comes from my last
publish...)
Salutations,
Cyriaque,
le 01/06/2006 07:53 Mark Eggers a écrit :
Hello,
Adding a second css file with branding-css-links.ft
does not work under Firefox, but does under IE 6. It
turns out that there is a reason according to both the
Bugzilla comments and the W3 recommendations:
https://bugzilla.mozilla.org/show_bug.cgi?id=223410
http://www.w3.org/TR/html4/present/styles.html#h-14.3.2
Basically, the author uses a title for the preferred
style sheet (according to Mozilla's reading of the
above). Since branding-css-links.ft adds a title
attribute for each css this means the first css file
in each page gets used and the second one gets ignored
by Firefox.
Is there a use planned for the title attribute in the
css links?
Thanks - Mark
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com