Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How may I combine two CSS classes?

0 views
Skip to first unread message

Cybarber

unread,
Mar 23, 2003, 6:16:28 PM3/23/03
to
class="time spans"  (without the coma, read your specs first!).
 
Cybarber
Hi,

I wonder whether one can combine two different classes in CSS (merely
for IE6, btw).
I have something like this:

<style>
.time  { behavior: url(#default#time2) }
.spans {
color: #fff;
font-family: Verdana, sans serif;
font-size: 13px;
position: absolute;
text-align: center;
left: 20px;
top: 210px;
width: 320px;
}
</style>
</head>
[...]
<body>

<span class="time" class="spans" begin="6" dur="3.5">Line 1</span>
<span class="time" class="spans" begin="0.5" dur="6">Line 2</span>
[...]

The span sample above does not work as expected, i.e. the first class
is read, the second not. Neither works the following

<span class="time,spans" begin="6" dur="3.5">Line 1</span>

or anything similar using + or ; as separators.
Although I'm not new to CSS, I do not know whether this is practicable
or not.
Does anyone know?

Greetings,

Michael

Cybarber

unread,
Mar 23, 2003, 6:23:50 PM3/23/03
to
<SPAN class=time begin = "6" dur = "3.5" timeAction = "class:spans">Line
1</SPAN>
<SPAN class=time begin = "0"
dur = "6" timeAction = "class:spans">Line 2</SPAN>

Robert van Gilst

unread,
Mar 25, 2003, 3:55:31 AM3/25/03
to
Hi Michael,

Use space as a seperator, that works for me.
<style>
.underline { text-decoration:underline }
.blue { color:blue}
</style>


<span class=underline>underline</span>
<span class=blue>blue</span>
<span class="underline blue">both</span>

Robert

>.
>

bobbyballgame

unread,
Aug 11, 2003, 10:10:32 AM8/11/03
to
I wish I could agree with the statement "read your specs first!", but
unfortunately I tried that, and you really have to know what spec you are
referencing.

Certainly, reading the w3c spec is frustrating, because than you have to
track down if that functionality is present or properly implemented.


0 new messages