Uneven spacing and image sizes in Looped Items Slider

Hello,

I’m using BeTheme with alternating posts in a Looped Items Slider, and I have two related layout issues.

The first issue is with the excerpt/text length. Some posts have longer text than others, which makes certain items taller and creates large empty gaps between the alternating posts, especially on mobile.

I would like all post items to have a consistent height and spacing, ideally by limiting the excerpt to the same number of lines, for example 4–5 lines.

I have already tried CSS using line-clamp, height: auto, min-height: 0, and different selectors for the slider and its items, but none of them had any effect.

The second issue is with the featured images. Some images are vertical/portrait and others are horizontal/landscape. I would like the layout to remain consistent regardless of the original image dimensions.

Ideally:

  • all image areas should have the same dimensions or aspect ratio;
  • portrait and landscape images should not change the height of the post item;
  • images should keep their original proportions;
  • images can be cropped automatically if needed, for example using object-fit: cover, but they should not be stretched or distorted;
  • the alternating layout and spacing should remain consistent on both desktop and mobile.

Could you please advise what is the correct way to achieve this in the Looped Items Slider?

Is there a built-in BeTheme setting for limiting excerpt length and normalizing image sizes, or could you provide the correct CSS/selectors for this layout?

I’ve attached a screenshot showing the issue.

url: [Links visible only for registered users]

Thank you!

Steve

While waiting for a response from one of our team members, we recommend to check Support Center where it is highly likely that you will find the answer to your question in no time.

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.