Jump to content

How Can I Set Banner to Lock intrinsic size on homepage - desktop and mobile

Go to solution Solved by tuanphan,

Recommended Posts

I have this image that I want to have displayed at the full size without getting cropped by the CSS embedded in the code on both desktop and mobile. How can I do that using the Custom CSS?

I know you're not supposed to use embedded text in banners, but that's besides the fact. This theme doesn't have enough font styling to achieve this result without it. 

dickenson-county-behavioral-health-services-header.png

Link to comment
  • Replies 6
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

You can use this code to Website > Website Tools (under Not Linked) > Custom CSS

@media screen and (max-width:640px) {
body.homepage figure#thumbnail img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
}
body.homepage .banner-thumbnail-wrapper.has-description {
    padding: 0 !important;
    height: 150px !important;
}
}

 

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.