I have several titles I'm using as headers for decks and cards in the Composition app. I want the headers to text wrap as appropriate and am looking for CSS code that can work.
Danny from ServiceRocket here.
Thanks for raising this question, and with our Card macro supporting custom CSS stylings, I've done a few tests regarding your use-case that can be achieved via the CSS below:
.aui-tabs.horizontal-tabs .tabs-menu a {
max-width: 300px;
word-wrap: break-word;
white-space: normal;
}
The CSS Classes referenced would point to all the Cards that are located inside of the horizontal Deck of Cards location.
As for the CSS properties, 'max-width' controls the width of your Card Label, 'word-wrap: break-word' allows for long words to be broken and wrapped into the next line, while 'white-space: normal' allows for text wraps and break lines when necessary.
With this, you can create a custom CSS file (i.e. textWrap.css) attaching it to your page's attachments, while utilizing the Composition Setup macro to import its link. Thereafter, shall you have any changes in the future, you can simply update the attachment CSS file.
Macros example:
Result:
Hope this helps!
If you have any further questions regarding your our product, feel free to reach out to us via our Support Portal or Drift chat
Thanks & Best Regards,
Danny
ServiceRocket Apps Support
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.