<h3>Bahrain</h3>
<div class="flag bahrain">
  <div class="bahrain__triangle"></div>
  <div class="bahrain__triangle"></div>
  <div class="bahrain__triangle"></div>
  <div class="bahrain__triangle"></div>
  <div class="bahrain__triangle"></div>
</div>
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  width: 100%;
  height: 100vh;
  background-color: rgb(221, 239, 255);
  display: grid;
  place-items: center;
  font-family: cursive;
  font-weight: bold;
}

h3 {
  position: absolute;
  text-align: center;
  top: 20px;
}

/* Main Style Stars from here  */
.flag {
  position: relative;
  width: 300px;
  height: 200px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.bahrain {
  background-color: #ed1b24;
}

.bahrain__triangle {
  position: absolute;
  top: -33px;
  left: -10px;
  background-color: rgb(255 255 255);
  width: 110px;
  height: 110px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-270deg);
}

.bahrain__triangle:nth-child(2) {
  top: 7px;
}
.bahrain__triangle:nth-child(3) {
  top: 47px;
}
.bahrain__triangle:nth-child(4) {
  top: 87px;
}
.bahrain__triangle:nth-child(5) {
  top: 127px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.