# Change image ratio

**URL:** <https://community.elfsight.com/t/change-image-ratio/110628>\
**Category:** Timeline\
**Created:** [April 1, 2025, 1:21pm UTC](https://community.elfsight.com/t/change-image-ratio/110628 "2025-04-01T13:21:10Z")\
**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:** [April 1, 2025, 1:21pm UTC](https://community.elfsight.com/t/change-image-ratio/110628/1 "2025-04-01T13:21:10Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your [Timeline](https://elfsight.com/timeline-widget/) widget’s settings:

```auto
.es-event-card-content-image {
  aspect-ratio: 2/1 !important;
}

```

You can set any ration in the 2nd line of the code 🙂

---

<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:** [October 9, 2025, 5:52pm UTC](https://community.elfsight.com/t/change-image-ratio/110628/2 "2025-10-09T17:52:18Z")

</div>

A post was split to a new topic: [Change display of image in timeline](https://community.elfsight.com/t/change-display-of-image-in-timeline/140467)
