quote:
That still doesn't really explain the 'order' that you put them in an external file making a difference.
so for example if you have two styles for H1 like
H1 {color: red;}
H1 {color: blue;}
then how do you decide which one wins? they are both equal so it's decided by whicever one comes last
so in this case all heading 1's would be blue.
you can use this to your advantage like this
H1, H2, H3, H4, H5 {
font-family: "Trebuchet MS", Geneva, Verdana, Helvetica, sans-serif;
color: #006AAE;
line-height: 1em;
margin-bottom: 0;}
but then you could easily make H1 red by this
H1, H2, H3, H4, H5 {
font-family: "Trebuchet MS", Geneva, Verdana, Helvetica, sans-serif;
color: #006AAE;
line-height: 1em;
margin-bottom: 0;}
]H1 { color: red;
}[/code]
then the headings are all trebuchet MS with no bottom margin, etc, and blue, except H1 which is red, because it comes later in the stlye sheet (if it was the first style in the order then it would be over-ridden by the color: #006AAE; in the later style)