Skip to content

Instantly share code, notes, and snippets.

@Baconalwaysbetterthanyou
Last active February 25, 2024 07:44
Show Gist options
  • Save Baconalwaysbetterthanyou/d64e001541eec4503cc9d94e61a77b61 to your computer and use it in GitHub Desktop.
Save Baconalwaysbetterthanyou/d64e001541eec4503cc9d94e61a77b61 to your computer and use it in GitHub Desktop.
flexbox defense answers (all correct)
level 1
.tower-group-1 {
display: flex;
justify-content: center;
}
level 2
.tower-group-1 {
display: flex;
justify-content: flex-end;
}
.tower-group-2 {
display: flex;
justify-content: center;
}
.tower-group-3 {
display: flex;
justify-content: flex-end;
}
level 3
.tower-group-1 {
display: flex;
justify-content: center;
}
.tower-group-2 {
display: flex;
justify-content: center;
justify-content: space-between;
}
level 4
.tower-group-1 {
display: flex;
align-items: flex-end;
}
.tower-group-2 {
display: flex;
align-items: flex-end;
}
level 5
.tower-group-1 {
display: flex;
justify-content: space-around;
align-items: flex-end;
}
.tower-group-2 {
display: flex;
justify-content: center;
}
.tower-group-3 {
display: flex;
justify-content: center;
}
level 6
.tower-group-1 {
display: flex;
justify-content: space-between;
align-items: center;
}
level 7
.tower-group-1 {
display: flex;
flex-direction: column;
}
.tower-group-2 {
display: flex;
flex-direction: column;
}
level 8
.tower-group-1 {
display: flex;
flex-direction: column;
}
.tower-group-2 {
display: flex;
align-items: center;
flex-direction: column;
}
level 9
.tower-group-1 {
display: flex;
justify-content: space-around; ;
flex-direction: row-reverse;
flex-direction: row-reverse; ;
align-items: center; ;
justify-content: space-around;
}
.tower-group-2 {
display: flex;
flex-direction: column;
flex-direction: row-reverse;
justify-content: space-around;
align-items: center;
}
level 10
.tower-group-1 {
display: flex;
justify-content: space-around;
}
.tower-1-1 {
order: 0;
}
.tower-1-2 {
order: 2;
}
.tower-1-3 {
order: 1;
}
.tower-group-2 {
display: flex;
justify-content: space-around ;
flex-direction: row-reverse; ;
flex-direction: row-reverse; ;
align-items: center; ;
justify-content: space-around;
}
.tower-2-1 {
}
.tower-2-2 {
order: -1;
}
.tower-2-3 {
}
level 11
.tower-group-1 {
display: flex;
justify-content: space-between;
}
.tower-1-1 {
align-self: flex-end;
}
.tower-1-2 {
}
.tower-1-3 {
align-self: flex-end;
}
.tower-1-4 {
}
level 12
.tower-group-1 {
display: flex;
justify-content: space-between;
}
.tower-1-1 {
order: -1;
}
.tower-1-2 {
align-self: center;
}
.tower-1-3 {
align-self: center;
}
.tower-1-4 {
align-self: center;
}
.tower-1-5 {
order: 1;
align-self: flex-end;
}
@Baconalwaysbetterthanyou
Copy link
Author

hope you guys like the codes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment