# Unwanted padding under image

**URL:** <https://community.hubspot.com/t/unwanted-padding-under-image/84974>\
**Category:** Blog, Website & Page Publishing\
**Tags:** website-pages\
**Created:** [July 10, 2023, 1:18pm UTC](https://community.hubspot.com/t/unwanted-padding-under-image/84974 "2023-07-10T13:18:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel\_S](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nathaniel_s/32/6479_2.png) [@Nathaniel\_S](https://community.hubspot.com/u/Nathaniel_S)\
**Post date:** [July 10, 2023, 1:18pm UTC](https://community.hubspot.com/t/unwanted-padding-under-image/84974/1 "2023-07-10T13:18:58Z")

</div>

Hi all, anyone know how to remove this padding under the image (see screenshot). I’ve already set the margin + padding to 0 and have digged through the standard image module code and it doesn’t seem like its defined there.

 ![Screenshot 2023-07-10 at 15.03.57.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/0/50696508b2308dc6bdf6e596dbc8c3b3f0ee2dd6.jpeg)

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [July 11, 2023, 9:29am UTC](https://community.hubspot.com/t/unwanted-padding-under-image/84974/2 "2023-07-11T09:29:40Z")

</div>

Hey [@Nathaniel\_S](https://community.hubspot.com/t5/user/viewprofilepage/user-id/547014) this padding/margin is likely applied to the container for the image and not the image itself. The only way to remove this would be through adding custom CSS to the \<head\> section of your page. You will need to find the target div and then set the padding manually through css.

---

<div class="post-metadata">

**Author:** ![RVelcheva](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@RVelcheva](https://community.hubspot.com/u/RVelcheva)\
**Post date:** [February 4, 2026, 5:06pm UTC](https://community.hubspot.com/t/unwanted-padding-under-image/84974/3 "2026-02-04T17:06:21Z")

</div>

Hey @TomM2 ! How can we do that? I have the same problem

 ![Screenshot 2026-02-04 at 17.05.57.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a67d07c70d511a464944992d55577af74c2f54ed.png)
