Join the Webstudio community

Updated 2 months ago

Global code embed

At a glance

The community member who posted the original question is wondering why the CSS rule p {margin: 0;} affects all paragraphs, but the rule img {object-fit: cover;} does not affect all images. A comment suggests that the community member may need to inspect one of the images on their site to see if there is something overriding the object-fit: cover; rule.

Why does p {margin: 0;} effect all paragraphs, but img {object-fit: cover;} doesn't affect all images?
Attachment
image.png
J
1 comment
you might need to inspect one of your images on the site and see if there's something overriding it.
Add a reply
Sign up and join the conversation on Discord