Skip to main content
Border styles
Elaine Bondoc avatar
Written by Elaine Bondoc
Updated over 8 months ago

Borders are commonly used to separate and distinguish different sections, containers, or individual elements within a page. Borders can be styled as solid, dashed, dotted, double, groove, ridge, inset, outset, or none.

Listed below are some of the border styles that you can add through the site editor or theme editor.

Dashed

The dashed border style creates a series of short dashes along the border. It's useful for creating a visually distinctive separation between elements.

.dashed-border {
border: 2px dashed #990000;/*Border thickness and color are customizable*/
}

Dotted

The dotted border style creates a series of dots along the border. It's often used for decorative purposes or to create a subtle division between elements.

.dotted-border {
border: 2px dotted #006600;/*Border thickness and color are customizable*/
}

Double

The double border style consists of two parallel lines. It's a bold border style that can be used to emphasize or highlight elements.

.double-border {
border: 4px double #663366; /*Border thickness and color are customizable*/
}

Inset

The inset border style creates an illusion of the border being carved into the page. It gives a 3D, pressed-in appearance. It makes the element look like it is receding into the background or sinking into the surface. This style is commonly used to add depth and emphasis to certain elements on a site.

.inset-border {
border: 4px inset #3366cc;/*Border thickness and color are customizable*/
}

Outset

The outset border style is the opposite of inset. It creates an illusion of the border popping out from the page.

.inset-border {
border: 4px outset #cc6633;/*Border thickness and color are customizable*/
}

Hidden

The hidden border style hides the border, making the element visually appear without any border.

.hidden-border {
border: hidden;
}

None

The none border style also removes the border, similar to hidden.

.no-border {
border: none;
}

You can mix and match different border styles, colors, widths, and border-radius values to create unique and appealing designs for your site. Borders are an essential aspect, as they help organize content, create visual separation, and enhance the overall aesthetics of a site.

Did this answer your question?