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

combining id's

0 views
Skip to first unread message

newb guy

unread,
Sep 30, 2005, 2:01:26 AM9/30/05
to
Hi,

I read in a book on CSS that you can do something like this:

<span id="aaa bbb">
where aaa and bbb are different id's.

The advantage of the above syntax is brevity, obviously.

But it does not work, i.e. is not that same as
<span id="aaa"><span id="bbb">

Pls help.


Daniel Kirsch

unread,
Sep 30, 2005, 3:42:07 AM9/30/05
to
newb guy wrote:
> I read in a book on CSS that you can do something like this:
>
> <span id="aaa bbb">
> where aaa and bbb are different id's.

You cannot combine id's but you can combine CSS classes that way:

<span id="aaa" class="aaa bbb">

Daniel

newb guy

unread,
Oct 1, 2005, 3:10:28 AM10/1/05
to
aah, thanks Daniel.

"Daniel Kirsch" <Iwillnotr...@gmx.de> wrote in message
news:dhiq45$a2l$02$3...@news.t-online.com...

Trevor L.

unread,
Nov 25, 2005, 6:21:06 PM11/25/05
to


Sorry for the late reply, but I filed this away assuming this was correct.

I just tried it today without success.

My classes were
.blue {color: blue;}
.whitebg
{
background-color: white ;
font: 12px Verdana,Arial,Helvetica,sans-serif;
}

I wanted blue text with white background so I used <a class= "blue
whitebg".....>text </a> and it didn't work.
Neither did <a class= "whitebg blue".....>text </a>

The white background appeared in both cases, but not the blue text.
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


Josselin

unread,
Nov 26, 2005, 1:54:18 AM11/26/05
to
No it runs very well... at least with standard navigators ... ;-))
0 new messages