Its been a while since I’ve used CSS. But i’m having trouble. For some reason, I can’t get my page to recognize some embedded code I have in the <style> tags. I understand that anything embedded should override external settings.
The global of the external stylesheet are overriding the embedded.
Well, in saying the same you are assuming that the styles embedded in the <head> come after the link to the style sheet. If the external style sheet link comes after the embedded styles, and the specificity is the same, the external styles will prevail. Styles in the <head> are treated like external styles—at least in that the last one wins, assuming the same specificity.
Thanks Ralph and you guys. I did not know this. By specificity do you mean ID and Class names? What about nesting? How can i read up on the rules for this?