# How to make Comments widget smaller

**URL:** <https://community.elfsight.com/t/how-to-make-comments-widget-smaller/159281>\
**Category:** Customization\
**Tags:** comments\
**Created:** [May 9, 2026, 11:29pm UTC](https://community.elfsight.com/t/how-to-make-comments-widget-smaller/159281 "2026-05-09T23:29:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellybaby80](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jellybaby80](https://community.elfsight.com/u/jellybaby80)\
**Post date:** [May 9, 2026, 11:29pm UTC](https://community.elfsight.com/t/how-to-make-comments-widget-smaller/159281/1 "2026-05-09T23:29:50Z")

</div>

- **Issue description: Can the comment section be made smaller, please? It takes up most of my homepage** 🙈

- **Link to the page with the widget in question**

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [May 10, 2026, 2:43pm UTC](https://community.elfsight.com/t/how-to-make-comments-widget-smaller/159281/3 "2026-05-10T14:43:26Z")

</div>

Hi there, @jellybaby80 👋

Do I get it right that you’d like to decrease just the height of the widget container?

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [May 12, 2026, 9:31am UTC](https://community.elfsight.com/t/how-to-make-comments-widget-smaller/159281/5 "2026-05-12T09:31:40Z")

</div>

Thanks for clarification!

The code below will reduce the height of the widget container and add a vertical scroll:

```auto
[class*="widget__Container-sc"] {
  max-height: 400px;
  overflow-y: auto;
}

```

  

If you’d like to set a separate height for mobile, this code will do the trick:

```auto
@media screen and (max-width: 640px) {
  [class*="widget__Container-sc"] {
    max-height: 600px;
  }
}

```

  

Please add it to the Custom CSS field on the Style tab of your widget’s settings and let me know if you like the result 😉

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [May 13, 2026, 10:49am UTC](https://community.elfsight.com/t/how-to-make-comments-widget-smaller/159281/7 "2026-05-13T10:49:39Z")

</div>

It’s my pleasure!

In the meantime, we’d like to invite you to join our Giveaway, where you could win **4 FREE Months** for your subscription.

Check the details and join in: [May Giveaway: Celebrate Community Anniversary & Win 4 FREE MONTHS! 🎁](https://community.elfsight.com/t/may-giveaway-celebrate-community-anniversary-win-4-free-months/158383)
