# Change padding on mobile

**URL:** <https://community.elfsight.com/t/change-padding-on-mobile/90504>\
**Category:** Event Calendar\
**Created:** [December 19, 2024, 6:43pm UTC](https://community.elfsight.com/t/change-padding-on-mobile/90504 "2024-12-19T18:43:20Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [December 19, 2024, 6:43pm UTC](https://community.elfsight.com/t/change-padding-on-mobile/90504/1 "2024-12-19T18:43:20Z")

</div>

Add this code to the Custom CSS field on the Style tab of your [Event Calendar](https://elfsight.com/event-calendar-widget/) widget’s settings:

```auto
@media screen and (max-width: 600px) {
[class*="WidgetBackground__Container-sc"] {
padding: 20px 30px !important;
}
}

```

---

<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:** [June 26, 2025, 10:35am UTC](https://community.elfsight.com/t/change-padding-on-mobile/90504/2 "2025-06-26T10:35:54Z")

</div>

Split this topic on June 26, 2025, 10:35am UTC

A post was split to a new topic: [Remove paddings on mobile](https://community.elfsight.com/t/remove-paddings-on-mobile/128014)
