Jump to content

ellipsis for overflow text

Recommended Posts

Hello, I was wondering how to contain certain text blocks (all monospace paragraph type) to one line? I've built a page of images with descriptions underneath. Instead of having them spill over to a second line, I'd like them to have an ellipsis at the end of the first line, which I've aligned with the edge of my photos. Thanks.


website: https://www.holidayst.com/south-pacific

password: bonvoyage

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It looks like you solved with this CSS code?

pre code {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.