GodKid
May 28, 2004, 12:25 AM
hehehehehhehe ;D
OK... many ppl overlook this but remember that there are three MAIN types of CSS styles...
1 - in-line (where the style is defined in the same line as the object it applies to)
2 - embedded (defined in the <HEAD> tags) [imported CSS goes here as well and functions like embedded styles)
3 - external (residing somewhere else and linked to the HTML file)
Now also remember that there's a little thing called precedence.. meaning one kind will "override" another... the order from most to least import is as it's listed with in-line being most important/powerful.
Now the thing is.. precedence no only happens inter-type (between the types) but because of sequential processing there is INTRA-type precedence as well.
This means that an HTML tag override like a: hover will only affect the code ABOVE it ... so if you ever wanna give your webmaster a MAJOR headache... just shift some dependent code around ;D
eg:
a: link, a:visted and a:hover work together - shift em around and see what happens ;D
edit: - I just found t=out that precedence extends to even the very LINES within each CSS class! :o :o :o
OK... many ppl overlook this but remember that there are three MAIN types of CSS styles...
1 - in-line (where the style is defined in the same line as the object it applies to)
2 - embedded (defined in the <HEAD> tags) [imported CSS goes here as well and functions like embedded styles)
3 - external (residing somewhere else and linked to the HTML file)
Now also remember that there's a little thing called precedence.. meaning one kind will "override" another... the order from most to least import is as it's listed with in-line being most important/powerful.
Now the thing is.. precedence no only happens inter-type (between the types) but because of sequential processing there is INTRA-type precedence as well.
This means that an HTML tag override like a: hover will only affect the code ABOVE it ... so if you ever wanna give your webmaster a MAJOR headache... just shift some dependent code around ;D
eg:
a: link, a:visted and a:hover work together - shift em around and see what happens ;D
edit: - I just found t=out that precedence extends to even the very LINES within each CSS class! :o :o :o