Jump to content

Adjust poster text size on mobile

Recommended Posts

  • 2 weeks later...
On 3/15/2023 at 6:14 PM, TomBatch said:

Hey! 

It's the first image on the homepage. I basically want it to stay as it is now for mobile. But for desktop I want it as a 2:1 ratio. 🙂

Try adding to Design > Custom CSS

@media screen and (min-width:641px) {
div#block-yui_3_17_2_1_1666910696019_17181 .image-inset {
    padding-bottom: 50% !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
On 3/19/2023 at 5:48 PM, TomBatch said:

Hey Tuan, 

No that doesn't do what I want. It just moves the text down and creates a large white area under the image.

I've tried a few other snippets of CSS, but I'm really struggling with this one. 

Any other suggestions?

Can you add & keep the code? We can check it again easier

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
On 3/27/2023 at 7:06 PM, TomBatch said:

Hey Tuan, Any update on this? 🙂

Use this new code

@media screen and (min-width:641px) {
div#block-yui_3_17_2_1_1666910696019_17181 .content-fill {
    padding-bottom: 50% !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.