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

**URL:** <https://forum.builder.io/t/how-do-i-get-rid-of-default-margins-applied-to-images/978>\
**Category:** Technical Questions\
**Tags:** visual-editor\
**Created:** [September 11, 2021, 1:11pm UTC](https://forum.builder.io/t/how-do-i-get-rid-of-default-margins-applied-to-images/978 "2021-09-11T13:11:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![creativemac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/creativemac/32/355_2.png) [@creativemac](https://forum.builder.io/u/creativemac)\
**Post date:** [September 11, 2021, 1:11pm UTC](https://forum.builder.io/t/how-do-i-get-rid-of-default-margins-applied-to-images/978/1 "2021-09-11T13:11:26Z")

</div>

Hi there guys 🙂  
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?

---

<div class="post-metadata">

**Author:** ![maddy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/maddy/32/11_2.png) [@maddy](https://forum.builder.io/u/maddy)\
**Post date:** [September 14, 2021, 3:52pm UTC](https://forum.builder.io/t/how-do-i-get-rid-of-default-margins-applied-to-images/978/2 "2021-09-14T15:52:51Z")

</div>

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).
