The Cascade - help

I've been learning bits and bobs of css and The Cascade was being explained.

If I have a <h1> element on a page and i want to know the font-size property for it I have to go through a 5 step process with a numbers game and so on.

This is mind boggling and I have no idea why I would want to do this?

Could anyone help with this, I've read and read online, but nothing makes sense to me and it really seems like its gobilty gook.

Thanks in advance.
Aaron.
 

ronaldroe

Super Moderator
Staff member
Not sure I grasp what you're getting at. What 5 step process are you going through? If you want to understand how CSS cascades, here's a quick rundown in descending priority order:

- inline styles
- style tags
- linked stylesheets

So, inline styles will overpower style tags. Also, within those segments, whichever comes last takes priority. For instance, here:
Code:
body a{color:red;}
a{color:blue;}
Links on this page will be blue, because that rule comes after the first.

That's really all there is to it.
 
Top