Jump to content

Add Colored Background Behind Inline Image Block

Recommended Posts

Site URL: http://www.blaynegoldwasser.com


I am trying to add a colored background to sit behind my image.  I am just using an inline image block and want it to look more dynamic.  I've tried a few different codes but nothing seems to be working.

I want it to look something like this but instead of just half of the image, I want the background color to go all the way around the image block so the image is centered.



It is for this section of my website under "Technical Design"





Link to comment

Add to Design > Custom CSS

/* Techincal Design */
div#page-section-609c5dc1e110de06f4e1c979 .image-block-wrapper {
    overflow: visible !important;
div#page-section-609c5dc1e110de06f4e1c979 .image-block-wrapper:before {
    content: "";
    background: green;
    display: block;
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50%;
    bottom: -20px;
    z-index: 999;


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
  • 3 months later...

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.