# Center dates (Grid layout)

**URL:** <https://community.elfsight.com/t/center-dates-grid-layout/57650>\
**Category:** Event Calendar\
**Created:** [June 19, 2024, 1:31pm UTC](https://community.elfsight.com/t/center-dates-grid-layout/57650 "2024-06-19T13:31:00Z")\
**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 19, 2024, 1:31pm UTC](https://community.elfsight.com/t/center-dates-grid-layout/57650/1 "2024-06-19T13:31:00Z")

</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-date-element-component {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
    width: 100%;
}

```

  

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