Jump to content

Text background to meet edge of image CSS

Recommended Posts

  • Replies 3
  • Views 233
  • Created
  • Last Reply

Top Posters In This Topic

23 hours ago, katfox said:

Site URL: https://www.clinicallymedia.squarespace.com

How do I get the text background to meet the edges of the image behind it using custom CSS? See attached image. The code I currently have is below.

#block-yui_3_17_2_1_1638463122277_9696 div { 
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
}

Screen Shot 2021-12-07 at 10.38.01 AM.png

what is your protected password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

@katfox It looks like you  changed layout. Do you still need help?

On mobile, I see space between text in buttons is huge. You can use this CSS to improve it.

/* Mobile 3 buttons */
@media screen and (max-width:767px) {
div#page-section-618ea4bb6920d12b96df296f .span-4 .html-block * {
    margin-bottom: 0px !important;
}
}

image.thumb.png.81f8080fc76d083005c928289d1f5690.png

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.