BlayneG87 Posted May 12, 2021 Share Posted May 12, 2021 Site URL: http://www.blaynegoldwasser.com Hello, 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" Thanks! Link to comment
tuanphan Posted May 14, 2021 Share Posted May 14, 2021 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
BlayneG87 Posted August 17, 2021 Author Share Posted August 17, 2021 Sorry for the late reply. I ended up changing my layout but I will definitely use this in the future. Thank you for the tip! tuanphan 1 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