Linking to style sheets

Mike,

 > Ummm... I think I am missing something.  Is this how classes are to be
 > defined, or was this just an conceptual example?  In the style sheet, how
 > do I make a new class:
 > 
 > <HEAD><TITLE>Class example</TITLE>
 > <STYLE>
 > H1: color.text = #00C;
 > H1[CLASS=RED]: color.text = #C00;
 > </STYLE>
 > <BODY>
 > <H1>This is a blue header</H1>
 > <H1 CLASS=RED>This is a red header</H1>
 > </BODY>
 > 
 > This didn't work, in Arena 0.97g or 0.96s.  Both headers were blue.

In his examples, Bert used a general syntax in order to assign style
to any attribute. Arena is currently only able to attach style to the
CLASS attribute, and you can make it work by changing the 4th line to:

  H1.RED: color.text = #C00;

 > I'm also having a problem understanding how to link to a style sheet.
 > 
 > <HEAD><TITLE>Class example</TITLE>
 > <LINK REL=StyleSheet HREF="style.sheet">
 > <BODY>
 > <H1>This is a blue header</H1>
 > <H1 CLASS=RED>This is a red header</H1>
 > </BODY>
 > 
 > In Arena 0.97g, the status message indicates it is applying the style
 > sheet, but no styles take effect.  Arena 0.96s says nothing about applying
 > styles, and no styles take effect.  Where am I confused?

Arena will apply a hardcoded style sheet whenever a document is
displayed. I will take out the status line message as this can be
confusing. Otherwise, your example looks fine (remember the </HEAD>),
I would need to see the content of "style.sheet" to say what's wrong.

 > Arena 0.97g also doesn't catch on to text.background style attributes, but
 > 0.96s does.

The property names for color are:

 font.color
 back.color

There have been other names in the past (hey, it's labeled
experimental!), so please let me know if you find references to
"text.background". Also, note that you can say

 font.color = red

in addition to the hexadecimal color specifications.

Regards,

-h&kon

Hakon W Lie, W3C/INRIA, Sophia-Antipolis, France
http://www.w3.org/hypertext/WWW/People/howcome/

Received on Thursday, 6 July 1995 12:41:57 UTC