PDA

View Full Version : multiple classes


RainForest
10-11-2012, 06:03 PM
Hello,

Is there a way to apply multiple classes or rules to the same element or portion of an element?

For example, if I have a table with multiple columns and rows, and I create a set of rules for the table id, sometimes the table row *data* doesn't do what I want it to - say, have 5px cell padding, or a font size of 10px. But if I create a rule that applies only to the <td> tag, I can get the data to look the way I want, but then I can't apply the overall table id rules.

Is my question clear? I don't have a working example, it's only a hypothetical question based on my unsuccessful attempts to do this.

domedia
10-12-2012, 01:00 PM
Yes, you can have a multiple classes.

Example:

<p class="intro inside featured">This is my paragraph</p>

.

RainForest
10-12-2012, 03:50 PM
OK, thanks, domedia. I'll keep working on that.