Precedent of class or id as parent in descendant selectors
Wow, that was a mouthful, and I'm not even sure I phrased that correctly for what I'm asking. An example would probably be more clear. Say I have a div:
HTML Code:
<div id="slider" class="full">bunch of stuff here, including other elements like divs and img elements</div>
So now, in the stylesheet, which has precedent? Is it:
#slider
or
.full
or just whichever comes later in the stylesheet?
Further, if I want to - say control the css a contained div which is the first div child of the above div code, which has precedence? Is it:
#slider > div
or:
.full > div
or just whichever comes later in the stylesheet?
I'll probably have to experiment to see for certain, may even vary with some browser(s). In my experience I believe class has precedence, though one might easily assume id would. It's more unique.