# Make event images rectangular (List layout)

**URL:** <https://community.elfsight.com/t/make-event-images-rectangular-list-layout/58470>\
**Category:** Event Calendar\
**Created:** [June 24, 2024, 6:41pm UTC](https://community.elfsight.com/t/make-event-images-rectangular-list-layout/58470 "2024-06-24T18:41:40Z")\
**Posts on this page:** 1\
**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:** [June 24, 2024, 6:41pm UTC](https://community.elfsight.com/t/make-event-images-rectangular-list-layout/58470/1 "2024-06-24T18:41:40Z")

</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
.eapp-events-calendar-list-item-imageContainer { 
width: auto!important; 
} 

.eapp-events-calendar-list-item-imageContainer img { 
width: auto!important; 
}

```

  

Guys, if this code was helpful, please drop us a line in the comments 🙂
