How do I get rid of default margins applied to images?

Hi there guys :slight_smile:
I am trying to set a hero image to full width and 900px in height. I have set the image to “cover” and all margins and padding to 0 but non the less get a really large margin to the right. is there something I should be doing to get rid of it?

Hi @creativemac,

I know we resolved this via chat, but I wanted to share the answer here as well! Instead of 100% width, you can give your image full page width (100vw) and a margin left value of calc(50% - 50vw).

1 Like