Raw Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<!--
Change to "Your Name's Flag"
-->
<title>Flag Template</title>
</head>
<body>
<h1>My Flag</h1>
<div style="border-style: solid; border-color: black; border-width: 5px">
<div style="background-color: darkred; height: 60px"></div>
<!--Here because I added 20px padding to the text,
in order to push it down (without adding a seperate <p> tag),
I took 20px off of the height-->
<div
style="
background-color: white;
height: 40px;
text-align: center;
padding-top: 20px;
"
>
Flag of the Netherlands
</div>
<div style="background-color: darkblue; height: 60px"></div>
</div>
<br />
<div
style="
border-style: solid;
border-color: black;
border-width: 5px;
height: 200px;
"
>
<div
style="
background-color: #0055a4;
float: left;
width: 33.33%;
height: 200px;
"
></div>
<div
style="
background-color: #ffffff;
float: left;
width: 33.33%;
height: 100px;
padding-top: 100px;
text-align: center;
"
>
Flag of France
</div>
<div
style="
background-color: #ef4135;
float: left;
width: 33.33%;
height: 200px;
"
></div>
</div>
<br />
<div
style="
border-style: solid;
border-color: black;
background-color: #de2910;
border-width: 5px;
height: 200px;
position: relative;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
"
>
<span
style="
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 185px;
color: #ffffff;
"
>✚</span
>
<span style="z-index: 1">Flag of Switzerland</span>
</div>
</body>
</html>