View Full Version : TWO CSS styles in ONE tag..possible?

09-25-2002, 02:41 AM

can you put two css styles in one class tag?

for example..

.me {font-weight:bold}

div class="me.yell">some text here</div>

is this possible....

to use 2 or more styles in ONE class

09-25-2002, 03:01 AM

I don't believe that can be done. The syntax class="xx.xx " I think can only be used when referencing a html tag e.g
h1.style {font-color: red;}

The example you provided could easily be grouped together e.g.

.meandyell {font-weight: bold; font-color: red;}


I knew I would be corrected...learning stuff everyday


Alex Vincent
09-25-2002, 03:02 AM
<div class="me yell"></div>

Separated by spaces.

It's in the HTML spec. :cool: