<h3>Greece</h3>
<div class="flag greece">
<div class="greece__top_left">
<div></div>
<div></div>
<div></div>
<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;
}
.greece {
background: repeating-linear-gradient(
#055eb2,
#055eb2 11.11%,
#fff 11.11%,
#fff 22.22%
);
}
.greece__top_left {
width: 138px;
height: 111.33px;
background-color: white;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
}
.greece__top_left > * {
background-color: #055eb2;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.