Question
What is the Precedence of CSS Structure?
Both CSS commands are defined in the same CSS document... for
example... style.css
but one them is more broad, defining simply "img"
which the other is more specific, defining perhaps "div layer1 layer2 img" (only the image inside layer 2 of layer1)
if i have an image say in layer3, it should apply the property of "img"
what about an image inside layer2 of layer1? would the more specific definition applies or the more general (the "img")?
thanks
but one them is more broad, defining simply "img"
which the other is more specific, defining perhaps "div layer1 layer2 img" (only the image inside layer 2 of layer1)
if i have an image say in layer3, it should apply the property of "img"
what about an image inside layer2 of layer1? would the more specific definition applies or the more general (the "img")?
thanks
