Reduce title by letters and not words

JT
Josean TelleriaPosted 10 months ago

Hello,

We have a customer who is driving us crazy because he wants the white boxes to always be the same width. We are trying to achieve something like this with the text, but we only have the possibility of truncate it by words, could we do it by characters?

Or can you think of another option for the problem of the width of the box?

Thank you

0
#2639

2 answers

M
MinitekPosted 10 months agoModerator

Hi there,

No, this is not possible in current version. You can however use a css trick to truncate the title:

h3.mslider-title a,
h3.mslider-title span {
  white-space: nowrap;
}

h3.mslider-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
M
MinitekPosted 10 months agoModerator

To make sure that the detail box is always the same width:

.mslider-detail-box { width: 100%; }

Search