Do It Yourself – Tutorials – How to create offset image borders in Squarespace // Squarespace CSS Tutorial

by | Nov 24, 2020 | 0 comments

Do It Yourself – Tutorials – How to create offset image borders in Squarespace // Squarespace CSS Tutorial

by | Nov 24, 2020 | Do It Yourself - Build Your Own Website | 0 comments

Do It Yourself – Website Tutorials



Just getting started with Squarespace CSS? Awesome! 😍 I want to teach you the basics – grab my free Getting Started Guide here 👉 http://bit.ly/guide-to-css

This tutorial was recorded in my 7.1 demo site but also works for older versions of Squarespace!

This tutorial will show you how to create a border or frame for an image in Squarespace that sits slightly offset from the image itself. A few important things to note before you copy and paste this into your own site:

+ There is more than one way to do this! This is just one approach of many because code is super customizable.
+ Be sure to edit the code to suit your own site style, trying different border types and changing the margin to fit your image style.
+ This code is specifically for inline images and won’t work for other types.
+ You can apply this to a single page using page header code injection or an on page code block. Check out this tutorial for more info on that: https://youtu.be/kX6kRjCbzu8
+ You can apply this to a single image by using its block id. There is a free chrome extension that I use to easily grab that info, available here (https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde) Please note that I am NOT affiliated with that company or extension in anyway – I just use it myself!
+ If you need some help with this tutorial, feel free to contact me at https://insidethesquare.co/code-help

β†’ Here is the code from this tutorial for inline images. Change up the border style, pixel width, and color for the image block wrapper and be sure to adjust the margins for the image itself so it looks great on your site!
.design-layout-inline .image-block-wrapper {border: 2px solid #000; overflow:visible!important;}
.design-layout-inline img {margin-left: 25px; margin-top: 25px; }

β†’ Use this box shadow code to create that inset border, creating the look of a lifted image.
.design-layout-inline .image-block-wrapper {border: 2px solid #000; overflow:visible!important; box-shadow:inset 5px 5px 15px rgba(0,0,0,0.3)}
design-layout-inline img {margin-left: 25px; margin-top: 25px; }

β–Έβ–Έβ–Έ Ready for more codes?
The codes in this tutorial are just the beginning of all the cool things you can do with Custom CSS! When you’re ready to dive in and start customizing, you can use codes from my CSS Cheat Sheet. It has over 30 pages of code snippets and pro tips to help you get started. Download your copy at https://InsideTheSquare.co/css


#squarespace #squarespacecss #howto #customizesquarespace #css #squarespacetricks #squarespacehacks

The term “Squarespace” is a trademark of Squarespace, Inc. I am not affiliated with Squarespace, Inc. I just really love their platform.

source

0 Comments

Submit a Comment

What Our Clients Are Saying

North Burnaby Boxing Club

Thanks so much for all the great work you have done in developing our website Leland!

Manny, North Burnaby Boxing Club

Dieno Digital Marketing Services
5
2018-04-27T01:06:02+00:00

Manny, North Burnaby Boxing Club

Thanks so much for all the great work you have done in developing our website Leland!

JB Consulting

Leland built us a great site at a great price. We can’t say enough about how pleasant it was dealing...

Dave, JB Consulting

Dieno Digital Marketing Services
5
2018-04-27T01:06:57+00:00

Dave, JB Consulting

Leland built us a great site at a great price. We can’t say enough about how pleasant it was dealing with him!

Kelicor Logistics

Leland created my website for my new venture. I found his service to be excellent,was always available to answer my...

Colin, Kelicor Logistics Solutions

Dieno Digital Marketing Services
5
2018-04-27T01:07:34+00:00

Colin, Kelicor Logistics Solutions

Leland created my website for my new venture. I found his service to be excellent,was always available to answer my questions and was always prepared to go the extra mile, in order to ensure my website conveyed it's intended message,, And the cherry on top was it was most affordable. Would definitely recommend. Thanks Leland !

McNeney McNeney Spieker LLP

Dieno Digital has been providing our firm with what we like to call the Royal Package in customer service for...

M, McNeney McNeney Spieker LLP

Dieno Digital Marketing Services
5
2018-04-27T01:08:19+00:00

M, McNeney McNeney Spieker LLP

Dieno Digital has been providing our firm with what we like to call the Royal Package in customer service for over 3 years now. The knowledge and skills Leland brings to the table has increased our business and streamlined our social media platform. Our requests are always dealt with in a timely manner and we are always given options and alternatives to better reach potential new clients. We highly recommend Dieno Digital to increase your life social media presence.
5
4
Dieno Digital Marketing Services