Jump to content

Make a whole text block clickable

Go to solution Solved by tuanphan,

Recommended Posts

Hey there I am currently working on my portfolio website and I have one little issue. I created this image grid and I am using text boxes over the image boxes for the titles. The titles are linked to sub pages of my projects. Right now, I have the problem that only the text is clickable while the rest of the image (and the box which has the same size) is not. I want to have the whole text box clickable. Is that somehow possible?

Thank you! 🙂

Mischa

Bildschirm­foto 2023-12-04 um 17.14.40.png

Edited by mischalorenz
misspelled a word
Link to comment
  • Replies 4
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 12/5/2023 at 3:38 PM, mischalorenz said:

hey there! it is: https://www.badkidsproduction.com 

You try adding this code to Website Tools (under Not Linked) > Custom CSS

section[data-section-id="656c6191e3c60854aa933c6e"] .fluid-engine h2 a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

 

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

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.