Borders

Borders come in different thicknesses and colours, and they can be applied to elements like boxes, tables, images and paragraphs.

Overview

The default border styles are solid borders on all sides. Therefore, we are using the same class names as the boxes.

Standard border

Box with a coloured 1px-wide border

Class nameBorder colourBorder widthBackground colourNote
.box-bdr-gold#be830e1px#ffffff 
.box-bdr-black#0000001px#ffffff 
.box-bdr-white#ffffff1px#000000Should only be used on dark background.

Thick border

Box with a coloured 3px-wide border

Class nameBorder colourBorder widthBackground colourNote
.box-bdr-thick-gold#be830e3px#000000 
.box-bdr-thick-black#0000003px#ffffff 
.box-bdr-thick-white#ffffff3px#000000Should only be used on dark background.
 

Top, bottom & side borders

Borders can be applied to just one side of an element, these classes can also be combined to apply borders to multiple sides.

The classes are named using the format bdr-{side}-{colour}. For example, .bdr-left-gold

Where side is one of:

  • top: top border with 1px width
  • left: left border with 1px width
  • right: right border with 1px width
  • bottom: bottom border with 1px width

Where colour is one of:

  • black: #000000
  • gold: #BE830E
  • white: #FFFFFF

If you wish to have a side border with 3px width, please use .bdr-thick. For example, <p class= "bdr-left-gold bdr-thick">

 

No borders

If you wish to remove the border from one side of an element, please use the classes below:

  • noborder: remove borders on all sides
  • noborder-top: remove top border
  • noborder-left: remove left border
  • noborder-right: remove right border
  • noborder-bottom: remove bottom border

Use cases

Standard border - 1px width

class="box-bdr-gold"
class="box-bdr-black"
class="box-bdr-white text-white"

Thick border - 3px width

class="box-bdr-thick-gold"
class="box-bdr-thick-black"
class="box-bdr-thick-white"

Side border

We also have variations in black and white border, change gold to black or white.

class="bdr-top-gold"
class="bdr-left-gold"
class="bdr-right-gold"
class="bdr-bottom-gold bdr-thick"
class="bdr-right-gold bdr-bottom-gold"
class="bdr-top-gold bdr-left-gold bdr-bottom-gold"

No border

class="box-bdr-black noborder"
class="box-bdr-black noborder-top"
class="box-bdr-black noborder-left"
class="box-bdr-black noborder-right"
class="box-bdr-black noborder-bottom"
class="box-bdr-black noborder-top noborder-bottom"
Combinations
Border styles can be used in combination with box styles and table classes, or just used on their own.

Borders come in different thicknesses and colours, and can be applied to to a range of elements such as boxes, tables, images and paragraphs.

For the use of borders, we are using the same class names as boxes. Please find the detailed description in the style guide for box. Here we are giving the examples as a quick reference:

Standard border:

class="box-bdr-gold"
class="box-bdr-black"
class="box bg-black"

Thick border:

class="box-bdr-thick-gold"
class="box-bdr-thick-black"
class="box-bdr-thick-white bg-black"

Top, bottom & side borders

Borders can be applied to just one side of an element such as a box, table, image or paragraph using the following classes. These classes can be combined to apply borders to multiple sides.

class="box bdr-top-gold"

class="box bdr-bottom-gold "

class="box bdr-left-black bdr-thick"

class="box bdr-right-black"

No borders

Borders can be removed from just one side of an element such as a box, table, image or paragraph using the following classes:

  • noborder-top, noborder-right, noborder-bottom, noborder-left

All borders can be removed from an element by using the noborder class.