Jump to content

Image hover effect & 'Force' gridview on mobile

Recommended Posts

Hello!

We decided to spice up our contact page by adding images of our team members with the intent that if you hover over the images it switches to another image where we're making a silly face.

I followed this guide on how to set that up, it looks fine while editing but when viewing the published page the images jump around a bit. 

Here's our current page without the hover using image cards https://www.rift.no/kontakt

And here's the test page I've been playing around on https://www.rift.no/kontakt-new

I've been trying to get it to look like the current page. The text is text-boxes with a bunch of new lines to get it into the middle, which is not ideal because when you then view the page on mobile there's a ton of space between each photo. Ideally I'd love for the image and the text to stay on the same 'line' next to each other.  

Thanks in advance! 
 

Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

That fixed it, thank you!!

One more thing, is there a way to force the text to stay next to the image when on mobile?  

Also,  is there a way to give the text box another color? To get the same card look as we have on the current page? (Not as important, but if there's an easy solution I'm all ears 😛)

Link to comment
On 1/13/2022 at 2:59 PM, riftas said:

That fixed it, thank you!!

One more thing, is there a way to force the text to stay next to the image when on mobile?  

Also,  is there a way to give the text box another color? To get the same card look as we have on the current page? (Not as important, but if there's an easy solution I'm all ears 😛)

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#page-619e10733781d92120a08876 .span-6 {
    width: 50% !important;
    float: left !important;
    clear: none !important;
}

div#page-619e10733781d92120a08876 p:empty {
    display: none;
}
}

 

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.