# Adjust spacing in event cards

**URL:** <https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165>\
**Category:** Customization\
**Tags:** event-calendar\
**Created:** [November 25, 2026, 4:14pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165 "2026-11-25T16:14:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Armenta](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Mark\_Armenta](https://community.elfsight.com/u/Mark_Armenta)\
**Post date:** [November 25, 2026, 4:14pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/1 "2026-11-25T16:14:25Z")

</div>

Allow event width that does not add significant height to the event space. More mobile friendly format please.

---

<div class="post-metadata">

**Author:** ![Mark\_Armenta](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Mark\_Armenta](https://community.elfsight.com/u/Mark_Armenta)\
**Post date:** [November 25, 2026, 4:24pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/2 "2026-11-25T16:24:14Z")

</div>

> [@Adjust height of events](https://community.elfsight.com/t/adjust-height-of-events/138019/3):
>
> ```css
> @media (min-width: 480px) {
> .eapp-events-calendar-list-item-component {
> width: fit-content;
> }
>   
> .eapp-events-calendar-list-item-infoInner {
> flex-basis: fit-content;
> }
>   
> .eapp-events-calendar-list-item-info {
> gap: 20px;
> }
>   
> .eapp-events-calendar-list-item-component {
> flex-direction: row;
> }
>   
> .eapp-events-calendar-date-element-component {
> display: flex;
> flex-direction: column;
> justify-content: center;
> align-items: center;
> flex-shrink: 0;
> align-self: stretch;
> position: relative;
> margin: -20px 20px -20px -20px;
> width: 85px;
> border-radius: 0 !important;
> }
>   
> .eapp-events-calendar-list-events {
> align-items: center;
> }
>   
> .eapp-events-calendar-events-calendar-component,
> .eapp-events-calendar-events-calendar-header,
> .eapp-events-calendar-events-calendar-layout,
> .eapp-events-calendar-layout-container,
> .eapp-events-calendar-list-component,
> .eapp-events-calendar-list-item,
> .eapp-events-calendar-list-events {
> width: fit-content;
> }
>   
> [class*="WidgetBackground__ContentContainer-sc"] {
> display: flex;
> justify-content: center;
> }
> }
> 
> ```

Still too much gap between the event title and the details created. Does not limit the width to wrap to the next line

---

<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:** [November 25, 2026, 4:48pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/3 "2026-11-25T16:48:13Z")

</div>

Hi @Mark_Armenta 👋

Just to make sure I understand your requests correctly:

- On desktop, I only notice extra spacing in the first event card, where the start and end times aren’t displayed. However, the spacing seems larger on mobile. Are you referring specifically to the spacing in the mobile view?

- As for the text wrapping, are you referring to the start and end times in the event cards? Would you be happy with the entire time range displayed on a single line? If not, could you please specify how many characters you’d like to fit on each line before the text wraps?

---

<div class="post-metadata">

**Author:** ![Mark\_Armenta](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Mark\_Armenta](https://community.elfsight.com/u/Mark_Armenta)\
**Post date:** [November 25, 2026, 6:02pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/5 "2026-11-25T18:02:29Z")

</div>

Since I am a new user, it’s not allowing me to attach any examples or a link to my website to show you.

---

<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:** [November 25, 2026, 6:11pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/6 "2026-11-25T18:11:45Z")

</div>

Apologies about that! I’ve changed your trust level and now you should be able to attach examples and links 🙂

---

<div class="post-metadata">

**Author:** ![Mark\_Armenta](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Mark\_Armenta](https://community.elfsight.com/u/Mark_Armenta)\
**Post date:** [November 25, 2026, 7:14pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/7 "2026-11-25T19:14:34Z")

</div>

Here is the link to my website where I use this widget. [www.zodiac69.com](http://www.zodiac69.com) I’m trying to eliminate the gaps as I show in the graphic attached. It is especially bad in a mobile view. The gaps are huge.

Thank you for your quick response. It is much appreciated.

 ![Elfsight1.jpg](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/2/2/221f015adceb7fc45ddb34a7599d47e0975ee53e.jpeg)

 ![image.png](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/6/16c6d972cf01aa069cf760ed1e50679358d00d71.png)

---

<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:** [November 26, 2026, 12:34pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/8 "2026-11-26T12:34:49Z")

</div>

Got it, thanks for sharing the details!

We’ve removed these padding using the CSS code below:

```auto
.eapp-events-calendar-list-item-component {
  padding-top: 12px;
  padding-bottom: 12px;
}

.eapp-events-calendar-list-item-date {
  margin-top: -12px;
  margin-bottom: -12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.eapp-events-calendar-list-item-locationAndTime {
  margin-top: 6px;
}

.eapp-events-calendar-list-item-locationAndTime:empty {
  display: none;
}

.eapp-events-calendar-list-item-description {
  margin-top: 6px;
}

@media (max-width: 600px) {
  .eapp-events-calendar-list-item-date {
    margin-bottom: 12px;
  }
}

```

Please check your website and let me know if you like the result 😉

---

<div class="post-metadata">

**Author:** ![Mark\_Armenta](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Mark\_Armenta](https://community.elfsight.com/u/Mark_Armenta)\
**Post date:** [November 26, 2026, 3:43pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/9 "2026-11-26T15:43:33Z")

</div>

Thank you Max. You ROCK!! I’ll give it a try. Thank you for the fast response. Have a great Thanksgiving Holiday.

Mark

---

<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:** [November 26, 2026, 4:07pm UTC](https://community.elfsight.com/t/adjust-spacing-in-event-cards/180165/10 "2026-11-26T16:07:06Z")

</div>

It’s my pleasure!

Just in case, I’d like to note that this code is already saved in your widget, so you won’t have to do anything additionally.

If you have any further questions or any assistance is needed, we’re always here to help!

Have a great Thanksgiving Holiday 😊
