...

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



BrightNail
09-25-2002, 02:41 AM
hey,

can you put two css styles in one class tag?

for example..

.me {font-weight:bold}
.yell{font-color:red}


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

is this possible....

to use 2 or more styles in ONE class

JustAsking
09-25-2002, 03:01 AM
BrightNail,

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;}

<edit>

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

</edit>

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

Separated by spaces.

It's in the HTML spec. :cool:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum