CSS Order Of Precedence April 8, 2006
Posted by Lucanos in : programming, CSS , trackbackJust thought I would share this tidbit, as I was unaware of it, and couldn’t find it when I did a quick search of the net…
When processing CSS rules, it seems that the styles are applied in the following order of precedence:
- Style
- ID
- Class
So any CSS coding applied via the Style attribute will over-write and out-rank any styling applied via the ID. And so forth.
But, this is just the results of my testing. So if anyone knows any better, please do let me know.
Comments»
no comments yet - be the first?