# Consistent Layout and Image Size

**URL:** <https://community.elfsight.com/t/consistent-layout-and-image-size/140423>\
**Category:** General Questions\
**Tags:** linkedin-feed\
**Created:** [October 8, 2025, 5:32pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423 "2025-10-08T17:32:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![user29521](https://avatars.discourse-cdn.com/v4/letter/u/ed655f/32.png) [@user29521](https://community.elfsight.com/u/user29521)\
**Post date:** [October 8, 2025, 5:32pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/1 "2025-10-08T17:32:47Z")

</div>

My LinkedIn Feed Widget uses the Slider layout. Sometimes the images from the LinkedIn Post are huge and sometimes the image is on top, with the post text underneath. Most times, the image is on the right, with the post text on the left (and I see the button to reverse that). How can I make sure it is always formatted that way - eliminate scenarios where the image is on top? And, also eliminate situations where the image is entirely too large?

---

<div class="post-metadata">

**Author:** ![user29521](https://avatars.discourse-cdn.com/v4/letter/u/ed655f/32.png) [@user29521](https://community.elfsight.com/u/user29521)\
**Post date:** [October 8, 2025, 5:59pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/3 "2025-10-08T17:59:30Z")

</div>

Also, I think if I can better control the image size, the top/bottom issue will go away, as that only seems to happen when the image is taking up 100% of the slider. So, a setting for the slider that will constrain the image size to 50% of whatever the slider width is, would likely work, as long as the height is also constrained proportionally.

---

<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 8, 2025, 6:04pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/4 "2025-10-08T18:04:44Z")

</div>

Hi there, @user29521 👋

The images that appear at the top are uploaded in a horizontal orientation on LinkedIn, while the ones on the right are in a vertical format:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/0/3/03cd863b4a42e0968d433c9f6e44c2af48c5c7b6.jpeg)

  

I’m not sure if there’s anything we can do about it, but I’ll check with the devs and let you know as soon as I have an update 🙂

---

<div class="post-metadata">

**Author:** ![user29521](https://avatars.discourse-cdn.com/v4/letter/u/ed655f/32.png) [@user29521](https://community.elfsight.com/u/user29521)\
**Post date:** [October 8, 2025, 7:03pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/5 "2025-10-08T19:03:01Z")

</div>

Thanks, that’s fine. I’m less concerned about the orientation and more about the size of the image - they are either clipping off the edges are expanding too large. Thanks, appreciate the prompt response.

---

<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, 10:15am UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/6 "2025-10-09T10:15:48Z")

</div>

Hi there, @user29521 👋

Please add this code to the Custom CSS field on the Style tab of your widget’s settings and let me know if it helped 🙂

```auto
.es-repost-preview-block {
  padding: 2px !important;
}

.es-card-repost-preview-block-container {
  display: flex;
  flex-direction: row-reverse;
  border: none;
}

@media (max-width: 768px) {
  .es-card-repost-preview-block-container {
    flex-direction: column-reverse;
  }
}

```

---

<div class="post-metadata">

**Author:** ![user29521](https://avatars.discourse-cdn.com/v4/letter/u/ed655f/32.png) [@user29521](https://community.elfsight.com/u/user29521)\
**Post date:** [October 9, 2025, 2:00pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/7 "2025-10-09T14:00:53Z")

</div>

Thanks, this helped quite a bit and ‘fixed’ about 90% of the problem I was seeing. There are still some where the images are being clipped - it’s not proportionally resizing, but I will try adding a max-height in with the max-width. This is great, thanks for the help and the prompt response.

---

<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, 4:03pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/8 "2025-10-09T16:03:21Z")

</div>

Ah, I see this! I’ve asked the devs if it’s possible to fix image cropping and will get back to you tomorrow 🙂

---

<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 10, 2025, 10:31am UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/9 "2025-10-10T10:31:03Z")

</div>

Our devs will try to adjust the image with the custom script. I’ll get back to you once I have any news 🙂

---

<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 13, 2025, 1:05pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/10 "2025-10-13T13:05:50Z")

</div>

Hi @user29521 👋

Thank you for waiting!

Please try to add this code to the Custom CSS field and let me know if you like the result 🙂

```auto
[class*='MediaContainer__Container-sc'] {
  height: 100% !important;
}

```

---

<div class="post-metadata">

**Author:** ![user29521](https://avatars.discourse-cdn.com/v4/letter/u/ed655f/32.png) [@user29521](https://community.elfsight.com/u/user29521)\
**Post date:** [October 14, 2025, 1:44pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/12 "2025-10-14T13:44:17Z")

</div>

Looks like this worked on all of the posts I spot-checked. Thank 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:** [October 14, 2025, 1:45pm UTC](https://community.elfsight.com/t/consistent-layout-and-image-size/140423/13 "2025-10-14T13:45:26Z")

</div>

Perfect, you’re always welcome 😉
