<h3>Jamaica</h3>

<div class="flag jamaica">
  <div class="jamaica__left_triangle"></div>
  <div class="jamaica__right_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;
}

.jamaica {
  background: #007848;
}

.jamaica__left_triangle,
.jamaica__right_triangle {
  position: absolute;
  border-width: 100px 150px;
  border-color: transparent transparent transparent #feb916;
  border-style: solid;
  transform: scale(1.3);
  left: 30px;
}

.jamaica__left_triangle::after,
.jamaica__right_triangle::before {
  position: absolute;
  content: "";
  border-width: 65px 100px;
  border-color: transparent transparent transparent black;
  border-style: solid;
  left: -150px;
  top: -65px;
}

.jamaica__right_triangle {
  border-color: transparent #feb916 transparent transparent;
  left: -30px;
}

.jamaica__right_triangle::before {
  border-color: transparent black transparent transparent;
  left: -50px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.