<h3>Guyana</h3>
<div class="flag guyana">
<div class="guyana__white"></div>
<div class="guyana__yellow"></div>
<div class="guyana__black"></div>
<div class="guyana__red"></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;
}
.guyana {
background-color: #009e49;
}
.guyana__white,
.guyana__yellow {
position: absolute;
content: "";
border-width: 100px 300px;
border-color: transparent transparent transparent white;
border-style: solid;
}
.guyana__yellow {
left: -25px;
border-left-color: #fcd116;
}
.guyana__black,
.guyana__red {
position: absolute;
content: "";
border-width: 100px 166px;
border-color: transparent transparent transparent black;
border-style: solid;
}
.guyana__red {
left: -25px;
border-left-color: #ce1126;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.