LindseyMexico14 Posted March 14, 2022 Share Posted March 14, 2022 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; } } Link to comment
Caroline_Smith Posted March 14, 2022 Share Posted March 14, 2022 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
LindseyMexico14 Posted March 15, 2022 Author Share Posted March 15, 2022 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? Link to comment
Caroline_Smith Posted March 15, 2022 Share Posted March 15, 2022 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? 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? 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
LindseyMexico14 Posted March 16, 2022 Author Share Posted March 16, 2022 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? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment