How to add Section Borders to Your Shopify Store | For Beginners

share

Disclosure: This post may contain affiliate links, which means I will receive a commission if you purchase through my links. There is absolutely no additional cost to you! 

Hey there! So you built your own store but it’s feeling a little, well, DIY?

I’m here to help you customize your Shopify website and show you how to take your website from DIY to fab with a simple yet effective touch: borders. Borders can instantly elevate your shop from homemade to “wow, this looks amazing!”

Even if you’re new to the whole website editing thing, not a problem! This guide is perfect for beginners. We’ll be using CSS, but don’t worry, it’s nothing scary. I’ll walk you through it step-by-step.

Ready to give your website a fresh new look? Let’s dive in! ✨

If you caught my latest YouTube video, you’re already on the right track continue reading for all the ways to customize the CSS code, YASS their is more! 🫶🏽

Want to watch the tutorial? Click 👇🏽

How to add borders to individual sections in your Shopify Store

Begin by heading over to your Shopify admin and navigate to the “Online Store” section. From there, click on “Themes.” Locate the theme you want to apply the border too and click on the “Customize” button.

Adding Individual Section Borders Step By Step

STEP 1: Choosing Your Section

Once you’re inside the theme customizer, it’s time to choose the section you want to jazz up with a border. For this tutorial, we will use the Rich Text section.

Within the theme editor, you’ll be able to customize various aspects of your store’s design. Decide which section you want to add a border to. Once you’ve selected your section, click on the section, and scroll down to the very bottom of the editor and find the Custom CSS panel. This is where the magic happens! 

The code you add will only affect the selected section. If you want borders on other sections, you can simply repeat the process for each one.

Custom CSS For each Shopify section


Copy and paste the code below in the Custom CSS panel to add a border to the top and bottom of a section:

Click SAVE

STEP 3: Decoding and Customizing the Border with CSS

The beauty of CSS is that you can play around with it to create the perfect look for your store. Here’s a breakdown of the code to help you customize it:

  • Border Property (1): This lets you choose where you want the border to appear. Here are some options:
    • Border – Border wraps around the entire section
    • border-top – Defines a top border only
    • Border-bottom – Defines a bottom border only
    • Border-left – Defines a left border only
    • Border-right – Defines a right border only
  • Border Style (2): You have the freedom to choose the type of line around your border! Play around with the following values:
    • dotted – A line that consists of dots.
    • dashed – A line that consists of dashes.
    • solid – A solid, continuous line.
    • double – Two lines are drawn around the element.
    • groove –  Adds a bevel based on the color value in a way that makes the element appear pressed into the document. The effect depends on the border-color value.
    • ridge –  Adds a bevel based on the color value in a way that makes the element appear pressed into the document. The effect depends on the border-color value.
    • inset – Adds a split tone to the line that makes the element appear slightly depressed. The effect depends on the border-color value
    • outset – Similar to inset, but reverses the colors in a way that makes the element appear slightly raised. The effect depends on the border-color value
  • Border Width (3): Want a thin border or a bold statement piece? Adjust the height (in pixels) to your liking.

  • Border Color (4): Pick a color that complements your brand’s vibe! Simply enter the hex code, and voila! You can also use RGB, and HSL color values. 

  • !Important (5): This is an optional addition. Sometimes, you might need to emphasize that your CSS rules should override any conflicting styles.


Pssssst…. You can 📌 pin this tutorial for reference to your Shopify Board on Pinterest! 👍🏽

How to add section borders to your shopify store for beginner pin image

Bonus Tips:

Want to soften up the corners or borders a bit?! You can easily soften the edges of your borders to create a softer feel or leave it as is for a modern look.

Tip #1: How to Round the Border Corners

You can soften the edges of the corners in 2 ways:

Alternative #1: Inside the Theme setting.
Within the Theme Editor got to Theme settings (top left hand side) > Content containers > Corner radius > set the radius to your preference.

Alternative #2: Inside the section Custom CSS:

  • Locate the Border Code:  Within your custom CSS section (as mentioned in Step 2 of the main guide), find the code you added for the border.
  • Introducing border-radius: After the last semicolon (;) enter border-radius: Xpx; Replace “X” with your desired curvature value. The higher the value, the rounder the corners will become.

This will add a 10px rounded edge to the border. Don’t forget to Save the changes.

Tip #2: How to Add Shadow to Borders

You can soften the edges of the borders in 2 ways:

Alternative #1: Inside the Theme setting.
Within the Theme Editor got to Theme settings (top left hand side) > Content containers > Shadow > set the Opacity, Horizontal offset, Vertical offset, and Blur your preference.

Alternative #2: Inside the section Custom CSS:

  • Locate the Border Code:  Within your custom CSS section (as mentioned in Step 2 of the main guide), find the code you added for the border.
  • Introducing box-shadow: After the last semicolon (;) enter box-shadow code: Xpx #hex-color; Replace “X” with your desired effect and color.

Decoding and box-shadow CSS
Here’s a breakdown of the code to help you customize it:

  • Box-Shadow Property (1): This property is used to add shadows to elements. It can take multiple values to define the different aspects of the shadow.

  • Values:
    • (2) – This is the horizontal offset of the shadow. A positive value moves the shadow to the right, and a negative value moves it to the left.
    • (3) – This is the vertical offset of the shadow. A positive value moves the shadow down, and a negative value moves it up.
    • (4) This is the blur radius of the shadow. A higher value creates a softer, more blurry shadow.
    • (5) This is the spread radius of the shadow. A positive value makes the shadow larger, and a negative value makes it smaller.

  • Play around with the values in the properties to achieve the specific shadow effect you desire. Change the offsets, blur radius, spread radius, and color to create different shadow styles.

Experiment and Have Fun with CSS

The beauty of CSS customization is how flexible it is. Feel free to experiment with different styles, heights, values, and colors until you find the perfect combination for your brand.

Here is a code to try:

Phew, I know this was a lot for a border! Don’t be afraid to mix and match border styles and the Colors! If this tutorial has inspired you to learn CSS checkout this wonderful resource that I use ALL.THE.TIME and its how I learned CSS 🫶🏽 https://www.w3schools.com/where_to_start.asp

Adding borders to your Shopify sections is a simple yet impactful way to elevate your store’s design. With this newfound knowledge, have fun and beautify your online space!

YOU GOT THIS!
Betsy

FAQ’s

Can I add borders to any section of my Shopify store?

Yes! You can add borders to almost any section of your Shopify store using CSS customization. Whether it’s the announcement bar, product information, or any other section where the Custom CSS box is available.

Do I need coding experience to add borders to my Shopify website?

While some basic understanding of CSS can be helpful, you don’t necessarily need any experience. This tutorial is designed for beginners, so just follow along and make sure you use the code correctly.

Will adding borders affect my website’s loading speed?

In most cases, the impact on loading speed should be minimal. Borders are relatively lightweight and shouldn’t significantly increase page load times.

What if I want different border styles for different sections?

No problem! The beauty of CSS is its flexibility. You can create separate code variations for each section to achieve the desired border styles.

Can I add borders to other elements on my Shopify store, besides sections?

Absolutely! CSS can be used to style various elements in your store, like buttons, product images, and text. However, the specific steps might differ depending on the element you’re targeting.

WELCOME TO THE BLOG

Hola! I’m Betsy, so happy to have you here! I share tips, tricks, and resources to help you build an ecommerce shop you’re proud of!

JOIN THE COMMERCE CONNECTION TRIBE!

Stay up to date on the latest Shopify updates and new releases, PLUS much more delivered directly to your inbox.

Please wait...

<span style="color: #000357;">woohoo! Welcome to the tribe!</span>

No Spamming here!
Unsubscribe at any time.

Our Favorite Premium Themes👇🏽

Stay up-to-date

on all things ecommerce and Shopify!

Join Commerce Connection our monthly newsletter to receive all the goodies straight into your inbox. Delivered on the 1st of the month, you can expect:

Commerce Connection by Betsy Lugo Creative

Leave a Reply

Your email address will not be published. Required fields are marked *

Shopify launch checklist

Launch checklist

Everything you need to launch with confidence knowing you didn’t forget anything.