Jump to content

Remove hover effects on mobile only

Recommended Posts

  • Replies 5
  • Views 491
  • Created
  • Last Reply
2 minutes ago, P-Lato said:

Site URL: https://www.patrickpilato.ca/

Hi there,

I have hover effects on icons on my homepage that work great on desktop, but do not work properly on mobile. Can someone help me remove these hover effects only on mobile? And also help me center align the captions on these icons on mobile please?

 

 

Hover effects not working properly need to be removed:

AIMG_9524.thumb.PNG.129e18b7699b7aa8a6009a9c2e8d7d3f.PNG.       

 

 

Caption not centered:

2 minutes ago, P-Lato said:

BIMG_9523.thumb.PNG.fb0b622edef96ed04e8e398ca3de1e95.PNG

 

Password: 123

Link to comment
2 hours ago, tuanphan said:

 

image.thumb.png.d68e1053e0aa89d4d0fe4b21a93ac0ba.png

Yes I was finally able to make some code to remove the hover and center the captions for mobile. Can you help me to make these icons correct on the tablet view please?

 

www.patrickpilato.ca password: 123

Link to comment
2 hours ago, P-Lato said:

Yes I was finally able to make some code to remove the hover and center the captions for mobile. Can you help me to make these icons correct on the tablet view please?

 

www.patrickpilato.ca password: 123

Add to Design > Custom CSS

/* Tablet home icons */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1618200791223_22986+.row>.span-1:not(:first-child) {
    width: 25%;
}
div#block-yui_3_17_2_1_1618200791223_22986+.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
div#block-yui_3_17_2_1_1618200791223_22986+.row .span-1:first-child, div#block-yui_3_17_2_1_1618200791223_22986+.row .span-1:last-child {
    display: none;
}
}

image.thumb.png.30651e82c8f6c2b4831bcfb39eb59d29.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
1 minute ago, tuanphan said:

Add to Design > Custom CSS


/* Tablet home icons */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1618200791223_22986+.row>.span-1:not(:first-child) {
    width: 25%;
}
div#block-yui_3_17_2_1_1618200791223_22986+.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
div#block-yui_3_17_2_1_1618200791223_22986+.row .span-1:first-child, div#block-yui_3_17_2_1_1618200791223_22986+.row .span-1:last-child {
    display: none;
}
}

image.thumb.png.30651e82c8f6c2b4831bcfb39eb59d29.png

That looks beautiful thank you so much!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.