mike9999
mike9999

Reputation: 57

When Order of CSS Matters?

I hope you can help me :)

for example if I have this in css file:

#quick-links a.responsive-menu-link:before, #quick-links a.responsive-menu-linker:before, .responsive-tab > a.responsive-tab-link { 
    font-size: 1.455em;
}

How do I know which goes first, second, and so on...

Do I need to put for example .responsive-tab first in order or #quick-links can stay first ?

Is this kind of order is not important ?

or in what way I should do it when more then one has the same style settings.

Thank you

Upvotes: 0

Views: 136

Answers (1)

tuxedobob
tuxedobob

Reputation: 211

In this case, order is not important. If an element matches any of them, the style will be used, unless a more specific style overrides it.

Upvotes: 2

Related Questions