No limitation, -so long as no declaration/selector over-rules another, previously-stated. Then, order-of-precidence takes 'hold and the last-stated is the obeyed.
would be GREEN text, because the class "third" is stated last in the precedence order in the HTML..
It gets complicated when you want some styles from class="first" and class="second" if you need "display:block;" and the second class states "display:inline;", and so forth...
Myself, if more than TWO classes are needed, I combine the stated-needed Declarations and create another new class (like, class="four") and use solely that, instead of combining three potentially-conflicting classes.
Within the confines of the syntax of HTML a class is just an attribute and I've never seen a character limit on an attribute value. If there are limits they are probably browser specific.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Bookmarks