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 288
  • Created
  • Last Reply

Top Posters In This Topic

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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
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?

Link to comment
  • Solution
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!)

Link to comment
  • 2 weeks later...

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.