CSS specificity - what am I missing

Learned about specificity and that inline styling overwrites everything so how can this be:
class plus tag should not be able to overwrite inline style.
10
55

You need to post some code, not just screenshots, it’s impossible to tell what is overriding what from the two pictures. What they show is you turning a property on and off in the developer tools; it doesn’t show anything overriding anything else. If possible can you post a small example on CodePen or similar.

Thanks Dan, I found my mistake: what I thought was inline-styling of the img element, was just setting the width and height attributes of the img element.

1 Like