<h3>Equatorial Guinea</h3>

<div class="flag equatorial_guinea">
  <img src="https://imgur.com/L1zhWHU.png" height="59" alt="" />
</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;
}
.equatorial_guinea {
  background: linear-gradient(#30a035 33%, #fff 33%, #fff 67%, #e02020 0);
  display: grid;
  place-items: center;
}

.equatorial_guinea::before {
  position: absolute;
  content: "";
  left: 0;
  border-width: 100px 75px;
  border-color: transparent transparent transparent #1e73ba;
  border-style: solid;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.