Jump to content

Custom CSS to resize Portfolio Grid title to fit on one line?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Views 465
  • Created
  • Last Reply

Top Posters In This Topic

Posted
14 hours ago, Enzoxs said:

Site URL: https://www.enzoxsvisuals.co.uk/

Hi, I was wondering if there's a way to resize portfolio simple titles to fit on one line? It's really annoying me that I get widows on their own lines on different devices.

Thanks in advance, 

Enzo

I check that they are fine at the moment. Have you figured it out?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
2 minutes ago, bangank36 said:

I check that they are fine at the moment. Have you figured it out?

When on a mobile device some of the titles spill onto another line, increasing the spacing between the photos. Also, is there a way to remove the tiles when viewing on a mobile device?

  • Solution
Posted
On 8/2/2022 at 10:00 PM, Enzoxs said:

When on a mobile device some of the titles spill onto another line, increasing the spacing between the photos. Also, is there a way to remove the tiles when viewing on a mobile device?

How about cutting text to ....? Like this

Add to Design > Custom CSS

@media screen and (max-width:767px) {
h3.portfolio-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
}

image.thumb.png.c9f2876351aa622d5201af68746bb2ec.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 2 weeks later...
Posted
On 8/4/2022 at 9:02 AM, tuanphan said:

How about cutting text to ....? Like this

Add to Design > Custom CSS

@media screen and (max-width:767px) {
h3.portfolio-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
}

Thanks so much! This works well

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.