Set a light grey border to an element in Bootstrap 4

To set a light grey border to an element, use the border border-light class in Bootstrap 4.

Adding a light border is easy as shown below −

<div class="demo border border-light">
  This element has light border

You can try to run the following code to implement the border-light-class −


Live Demo

<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>
    .demo {
      width: 150px;
      height: 220px;
      margin: 15px;
  <div class="container">
    <div class="demo border border-light">This element has light border</div>