HTML/CSS class declaration

HTML/CSS class declaration


In the tutorial it says:

Note: It doesn’t matter which order the classes are listed in the HTML element.

However, the order of the class declarations in the section are what is important. The second declaration will always take precedence over the first.

Yet, when i implement that. I can actually see that class order does have importance. And Class declaration within does not influence how they override one another.

Is that normal?


Sorry, problem solver. I figured i must declare both classes within the same “class1 class2” VS “class1” “class2”.