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

Difference between "." and eg td {}

0 views
Skip to first unread message

jason

unread,
Mar 13, 2003, 2:23:04 PM3/13/03
to
I see some people style sheet contain styles which being with "." - what
does this exactly mean?

Here is an example illustrating what I mean:

FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif
}
UL
{
FONT-SIZE: 8pt;
FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif
}
UL
{
FONT-SIZE: 8pt;
FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif
}
.tst
{
FONT-SIZE: 8pt;
FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
TEXT-ALIGN: left
}

Now, I can plainly see that the UL style will be global to any UL list
declared in code. But, the .TST is unclear to me - what is the meaning of
this convention and how do you use it?

Thanks!
Jason


Rowland Shaw

unread,
Mar 14, 2003, 3:14:22 AM3/14/03
to
"jason" <ja...@catamaranco.com> wrote...

> I see some people style sheet contain styles which being with "." - what
> does this exactly mean?

It defines a class

> Here is an example illustrating what I mean:
>

> UL
> {
> FONT-SIZE: 8pt;
> FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif
> }
> .tst
> {
> FONT-SIZE: 8pt;
> FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
> TEXT-ALIGN: left
> }
>
> Now, I can plainly see that the UL style will be global to any UL list
> declared in code. But, the .TST is unclear to me - what is the meaning of
> this convention and how do you use it?


<div class="tst">This has the tst class applied to it, declared by .tst {
... } in CSS</div>


0 new messages