<h3>Uzbekistan</h3>
<div class="flag uzbekistan">
<div class="uzbekistan__star_wrap">
<div class="uzbekistan__star_col">
<div class="uzbekistan__star"></div>
</div>
<div class="uzbekistan__star_col">
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
</div>
<div class="uzbekistan__star_col">
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
</div>
<div class="uzbekistan__star_col">
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
</div>
<div class="uzbekistan__star_col">
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
<div class="uzbekistan__star"></div>
</div>
</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;
}
.uzbekistan {
background: linear-gradient(#0099b5 50%, #1eb53a 0);
}
/* Middle white strip */
.uzbekistan::before {
position: absolute;
content: "";
height: 64px;
width: 100%;
background-color: white;
border: solid #ce1126;
border-width: 4px 0;
top: calc(50% - 64px / 2);
}
/* top white moon */
.uzbekistan::after {
position: absolute;
content: "";
left: 10%;
top: 4%;
height: 48px;
aspect-ratio: 1;
border-radius: 1in;
box-shadow: -8px 0 white;
}
.uzbekistan__star_wrap {
position: absolute;
left: 55px;
top: 4%;
display: flex;
justify-content: space-around;
height: 50px;
width: 87px;
}
.uzbekistan__star_col {
display: flex;
flex-direction: column;
justify-content: end;
height: 100%;
gap: 10px;
}
.uzbekistan__star {
height: 10px;
aspect-ratio: 1;
background: white;
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.