<h3>Benin</h3>
<div class="container" data-name="#19 - Benin">
<div class="flag benin"></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;
}
.benin {
background: linear-gradient(#fcd20e 50%, #e90a29 0);
}
.benin::before {
content: "";
position: absolute;
height: 100%;
width: 40%;
background-color: #018850;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.