<h3>North Korea</h3>
<div class="flag north_korea">
<div style="background: #024fa2; height: 33px"></div>
<div style="background: #ed1c27; height: 122px">
<div class="north_korea__circle">
<div class="north_korea__star"></div>
</div>
</div>
<div style="background: #024fa2; height: 33px"></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;
}
.north_korea {
display: flex;
flex-direction: column;
gap: 6px;
background-color: white;
}
.north_korea__circle {
background-color: white;
height: 80px;
aspect-ratio: 1;
border-radius: 1in;
margin: 15px 50px;
}
.north_korea__star {
aspect-ratio: 1;
background: #ed1c27;
clip-path: polygon(
50% 0%,
61% 35%,
98% 35%,
68% 57%,
79% 91%,
50% 70%,
21% 91%,
32% 57%,
2% 35%,
39% 35%
);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.