Jump to content

Text background to meet edge of image CSS

Recommended Posts

  • Replies 3
  • 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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.