How use an image for your horizontal line in Squarespace 7.1 & 7 // Squarespace CSS Tutorial

Just getting started with Squarespace CSS? Awesome! ๐Ÿ˜ I want to teach you the basics โ€“ grab my free Getting Started Guide here ๐Ÿ‘‰ https://insidethesquare.co/learn
โ€”
๐Ÿฅณ Ready to launch ? Use the code PARTNER10 for 10% off (affiliate code): https://insidethesquare.co/partner10
โ€”
๐Ÿ’• Love this free Square space tutorial? You can donate via Paypal to help support my YouTube Channel https://www.paypal.com/paypalme/insidethesquare
โ€”
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 replace your horizontal line with an image in your Squarespace website. 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.
+ I recommend using an image you upload into your site files so you can make sure you have access to it; using an image hosted by someone else means that the owner could take it down or change it without you knowing, messing up all your hard work!

Here are the steps from the tutorial:
1 โ€“ Upload the image to your Squarespace website (Design โ†’ Custom CSS โ†’ Manage Custom Files)
2 โ€“ Paste the code below in your Custom CSS (Design โ†’ Custom CSS)
3 โ€“ Replace the text image-url-here with your own image url from the custom files section, making sure to leave the individual quotation marks around the url itself.
4 โ€“ Adjust the height so the line looks the way you want it to!
5 โ€“ Pat yourself on the back for creating a unique site with some custom code you rockstar!

Here is the code for the line itself:
hr{background-color:transparent!important; background-image:url(โ€˜image-url-goes-hereโ€™); background-size:contain!important; background-position:center;background-repeat:no-repeat!important; height:30px!important}

โ†’ Need to make it bigger? Change the height.
โ†’ Want it to repeat horizontally? Try background-repeat: repeat-x
โ†’ Want it to repeat vertically? Try background-repeat: repeat-y AND increase the height.

โ€”
๐Ÿคฉ 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 ๐Ÿ‘‰ https://InsideTheSquare.co/css
โ€”
๐Ÿฅณ Ready to launch ? Use the code PARTNER10 for 10% off (affiliate code): https://insidethesquare.co/partner10
โ€”
๐Ÿ™‹ Need some help? Visit โ€‹https://insidethesquare.co/code-helpโ€‹ to see my current support options.
โ€”
The term โ€œSquarespaceโ€ is a trademark of Squarespace, Inc. This content is not affiliated with Squarespace, Inc. I just really love their platform โ™ฅ
โ€”
#squarespace #squarespacecss #howto #customizesquarespace #css #squarespacetricks #squarespacehacks #squarespacetips

You May Also Like