Stylesheets, pfft ... whatever! But what do you mean by CASCADING???
There are multiple ways to use stylesheets. In HTML, we could use the <style> </style> tag.
Alternatively we could use <link ref="agenericlynamed_stylesheet.css"> to refer to an outside file.
Inline stylesheets are another way to go.
But suppose that throughout the course of time, multiple authors did not use the very same means to alter the layout. We may have multiple style rules that appear to conflict. Or perhaps we need to be the one to override the rules written by other programmers. For these reasons and more, CSS adds precedence rules to the types of stylesheets directives used, and thus the specifications "cascade" over one another.
But don't just take my word for it. See for yourself!
Alternatively we could use <link ref="agenericlynamed_stylesheet.css"> to refer to an outside file.
Inline stylesheets are another way to go.
But suppose that throughout the course of time, multiple authors did not use the very same means to alter the layout. We may have multiple style rules that appear to conflict. Or perhaps we need to be the one to override the rules written by other programmers. For these reasons and more, CSS adds precedence rules to the types of stylesheets directives used, and thus the specifications "cascade" over one another.
But don't just take my word for it. See for yourself!
Comments
Post a Comment