Jump to content

portfolio project's image cutting in half on hover

Recommended Posts

Site URL: http://tonicabrandstudio.com


I've added code to minimize the top and bottom padding on my portfolio section. But as soon as I added in the code, the images that show up on hover cut in half on desktop (shows up fine on mobile). Anyone have an idea what's going on here? I've messed around with different height values etc but nothing seemed to work. 


site: tonicabrandstudio.com
pw: australia
menu > example
 

Here's the code that I've used to remove the portfolio section: 

 

/* portfolio height */
@media screen and (min-width:768px) {
[data-section-id="61ed52923ad0a2796cf80056"] {
    min-height: 30vh !important;
    height: 50vh;
}
.portfolio-hover-display {
    min-height: unset !important;
    height: 100% !important;
}
[data-section-id="61ed52923ad0a2796cf80056"] .content-wrapper {
    height: 50% !important;
}
}

 

Thank you!

Screen Shot 2022-01-26 at 3.12.45 PM.png

Link to comment
  • Replies 1
  • Views 248
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 1/26/2022 at 2:26 PM, tonicastudio said:

Site URL: http://tonicabrandstudio.com


I've added code to minimize the top and bottom padding on my portfolio section. But as soon as I added in the code, the images that show up on hover cut in half on desktop (shows up fine on mobile). Anyone have an idea what's going on here? I've messed around with different height values etc but nothing seemed to work. 


site: tonicabrandstudio.com
pw: australia
menu > example
 

Here's the code that I've used to remove the portfolio section: 

 

/* portfolio height */
@media screen and (min-width:768px) {
[data-section-id="61ed52923ad0a2796cf80056"] {
    min-height: 30vh !important;
    height: 50vh;
}
.portfolio-hover-display {
    min-height: unset !important;
    height: 100% !important;
}
[data-section-id="61ed52923ad0a2796cf80056"] .content-wrapper {
    height: 50% !important;
}
}

 

Thank you!

Screen Shot 2022-01-26 at 3.12.45 PM.png

Can you check site? The loading screen doesn't disapear..

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.