When using the ShortPoint Divider Design Element, you may want to change its color to be consistent with your SharePoint page’s overall aesthetic. By default, the divider color is set in greyscale:
This article will demonstrate how to change the divider color using Custom CSS:
NOTEThis Custom CSS is only applicable for Divider styles that allow color change. Some Divider styles do not allow color change.
TABLE OF CONTENTS
Prerequisites
- You must have the latest version of ShortPoint SPFx installed on your SharePoint environment.
- You must be a ShortPoint Designer with an active license.
- You must already have the Divider Design Element on your page.
Interactive Tutorial
Before starting the interactive tutorial, copy the Custom CSS code below:
.shortpoint-divider { border-top-color: blue !important; }
NOTEYou can change blue to any of the following: >Text representing an actual color i.e red, blue, green, etc. >rgb (red#, green#, blue#) for RGB code i.e. rgb (255,0,0), rgb (0,0,255), rgb (0,128,0), etc. >or #XXXXXX for HEX codes i.e. #FF0000, #0000FF, #008000, etc.
Step-by-step Tutorial
Follow the steps below for a detailed guide on how to change Divider colors:
Step 1: Edit the ShortPoint Web Part
- Go to the SharePoint page you want to use and click Edit.
- Click the ShortPoint tag.
- Select the pencil icon.
Step 2: Copy the Custom CSS code
- Copy the Custom CSS code below:
.shortpoint-divider { border-top-color: blue !important; }
NOTEYou can change blue to any of the following: >Text representing an actual color i.e red, blue, green, etc. >rgb (red#, green#, blue#) for RGB code i.e. rgb (255,0,0), rgb (0,0,255), rgb (0,128,0), etc. >or #XXXXXX for HEX codes i.e. #FF0000, #0000FF, #008000, etc.
Step 3: Paste the Code
NOTEBefore proceeding, make sure you already have the Divider Design Element on your page.
- Click the Row where the Divider Design Element is located.
- Click the cogwheel icon.
- Navigate to the Custom CSS tab.
- Paste the copied code.
- Change the color according to your preference.
Step 4: Insert and Save
- Once satisfied with your color change, click the green check mark.
- Click the eye icon to see your page in real-time.
- Select Save to apply all your changes.
Related articles:
- Custom CSS tab for ShortPoint Design Elements
- How to Change the Font on Tiles Design Elements
- How to Disable the Default Tiles Animation