scrimba
Helen Chong's JavaScriptmas 2023 Solutions
Helen Chong's JavaScriptmas 2023 Day 11 solution
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Helen Chong's JavaScriptmas 2023 Day 11 solution
AboutCommentsNotes
Helen Chong's JavaScriptmas 2023 Day 11 solution
Expand for more info
index.css
run
preview
console
:root { 
--white: #fff;
--red: #FF0002;
--flag-length: 12.8rem;
}

html, body {
margin: 0;
padding: 0;
}

html {
box-sizing: border-box;
}

body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.flag {
width: var(--flag-length);
height: var(--flag-length);
}

.flag-swiss {
background-color: var(--red);
display: grid;
grid-template-columns: repeat(5, auto);
grid-template-rows: repeat(5, auto);
}

.cross {
background-color: var(--white);
}

/* Vertical bar */
.cross1 {
grid-column: 3 / 4;
grid-row: 2 / 5;
}

/* Horizontal bar */
.cross2 {
grid-column: 2 / 5;
grid-row: 3 / 4;
}
Console
/index.html
LIVE