Jump to content

Get Image with Text Mobile Friendly

Recommended Posts

Site URL: https://tandoninteriors.com/design-services

Hi!

 

I am trying to get the  #block-yui_3_17_2_1_1646031185733_71685, text to be mobile friendly, I want the text on the light brown section but can seem to figure out the correct code for this.

A screenshot is attached of the section

Let me know if anyone has better ideas! This is what I have now:

@media only screen and (max-width: 640px) {
#block-yui_3_17_2_1_1646031185733_71685 .image-title p {
    font-size: .5em !important;
  line-height: 0em!important;
  }
}


@media only screen and (max-width: 640px) {
#block-yui_3_17_2_1_1646031185733_71685 .image-button a {
    font-size: .5em !important;
  }
}

@media only screen and (max-width: 640px) {
#block-yui_3_17_2_1_1646031185733_71685{
padding: 0px ! important;
margin-top: 5% !important;
margin-bottom: 5% !important;
margin-left: 0% !important;
margin-right: 0% !important; 
} }

Screen Shot 2022-03-14 at 12.32.49 PM.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

I think a much easier approach would be to use a regular text block (no image), and then make the make the background of that text block section the color of the image using a hex color code. You could also play around with the height and font styles using CSS, but I think this will accomplish what you need without the headache using "position: absolute;" with images can sometimes cause.

Feel free to email me with any customization inquiries or questions you may have!

Free Squarespace Resources: DevTools Minicourse,  11-Step Guide to Improve Custom CSS, Free Product/Pricing Comparison Table Generator

Link to comment
19 hours ago, Caroline_Smith said:

I think a much easier approach would be to use a regular text block (no image), and then make the make the background of that text block section the color of the image using a hex color code. You could also play around with the height and font styles using CSS, but I think this will accomplish what you need without the headache using "position: absolute;" with images can sometimes cause.

thanks! But then I can't make the text full bleed? 

 

Site URL: https://amphibian-porcupine-6hk9.squarespace.com/design-services-1

 

@media only screen and (max-width: 640px) {

#block-yui_3_17_2_1_1647360525751_17778, #block-yui_3_17_2_1_1647360525751_21064{

padding: 0px ! important;

margin-top: 5% !important;

margin-bottom: 5% !important;

margin-left: 0% !important;

margin-right: 0% !important;

} } 

 

this is the code I tried, would you happen to know if that would be possible? 

Screen Shot 2022-03-15 at 10.18.10 AM.png

Link to comment
8 minutes ago, LindseyMexico14 said:

thanks! But then I can't make the text full bleed? 

 

Site URL: https://amphibian-porcupine-6hk9.squarespace.com/design-services-1

 

@media only screen and (max-width: 640px) {

#block-yui_3_17_2_1_1647360525751_17778, #block-yui_3_17_2_1_1647360525751_21064{

padding: 0px ! important;

margin-top: 5% !important;

margin-bottom: 5% !important;

margin-left: 0% !important;

margin-right: 0% !important;

} } 

 

this is the code I tried, would you happen to know if that would be possible? 

Screen Shot 2022-03-15 at 10.18.10 AM.png

Based on your page inspection HTML, it looks like it's not full bleed because those are 2 separate h3 tags on separate lines (first image). You would need to put them in the same line in order to make it full bleed, like the second image.

Is that what you meant?

Screenshot_141.png

Screenshot_142.png

Feel free to email me with any customization inquiries or questions you may have!

Free Squarespace Resources: DevTools Minicourse,  11-Step Guide to Improve Custom CSS, Free Product/Pricing Comparison Table Generator

Link to comment
On 3/15/2022 at 10:30 AM, Caroline_Smith said:

Based on your page inspection HTML, it looks like it's not full bleed because those are 2 separate h3 tags on separate lines (first image). You would need to put them in the same line in order to make it full bleed, like the second image.

Is that what you meant?

Screenshot_141.png

Screenshot_142.png

No the problem is full bleed isn't supported, so I have to use CSS to get the image fullbleed but doing it as a textbox doesnt support the css I used 

 

which was this:

#block-yui_3_17_2_1_1646031185733_71685{
padding: 0px ! important;
margin-top: 5% !important;
margin-bottom: 5% !important;
margin-left: 0% !important;
margin-right: 0% !important; 
} }

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.