using CSS Border Properties
Properties.
Use the below reference image link:
https://res.cloudinary.com/dfxicv9iv/image/upload/v1619085330/css-border-properties-output_a4ucou.png
Achieve the design by using CSS border
border-* properties. The * indicates the direction.Apply the border shorthand property with the width
CSS Colors used:
#184b73
#ffffff
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <style>
    div {
      box-sizing: border-box;
      height: 35px;
      width: 180px;
      border: 2px solid #184b73;
      margin: 15px 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .border-shorthandResources {
      border: 5px solid #184b73;
    }
    .border-top-none { border-top: none; }
    .border-bottom-none { border-bottom: none; }
    .border-left-none { border-left: none; }
    .border-right-none { border-right: none; }
  </style>
  <div class="border-shorthandResources">border shorthand</div>
  <div class="border-top-none">border top none</div>
  <div class="border-bottom-none">border bottom none</div>
  <div class="border-left-none">border left none</div>
  <div class="border-right-none">border right none</div>
</body>
</html>
Comments
Leave a comment