previous

page 11

next
my styles.css
img {
height: 100%;
}
#game {
width: 120vmin;
height: 90vmin;
display: grid;
grid-template-rows: repeat(10,10%);
grid-template-columns: repeat(10,10%);
}
#scene {
grid-row: 1 / span 10;
grid-column: 1 / span 10;
}
#red {
grid-row: 6 / span 2;
grid-column: 5 / span 2;
}
#orange {
grid-row: 4 / span 3;
grid-column: 2 / span 2;
}
#yellow {
grid-row: 7 / span 4;
grid-column: 8 / span 3;
}
#green {
grid-row: 9 / span 2;
grid-column: 4 / span 2;
}
#blue {
grid-row: 7 / span 3;
grid-column: 6 / span 2;
}
#indigo {
grid-row: 9 / span 2;
grid-column: 6 / span 2;
}
#violet {
grid-row: 2 / span 2;
grid-column: 3 / span 2;
}
previous
next