<h3>Uruguay</h3>
<div class="flag uruguay">
<div class="uruguay__top_left">
<img src="https://imgur.com/6XuYyDE.png" width="82" alt="" />
</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;
}
.uruguay {
background: repeating-linear-gradient(
#fff,
#fff 11.1%,
#0038a8 11.1%,
#0038a8 22.2%
);
}
.uruguay__top_left {
width: 111px;
aspect-ratio: 1;
background-color: white;
display: grid;
place-items: center;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.