Question: I'm trying to recreate this image on the LEFT side. On the right is what I have now. my current CSS Code correlating to it

 I'm trying to recreate this image on the LEFT side. Onthe right is what I have now. my current CSS Code correlating

I'm trying to recreate this image on the LEFT side. On the right is what I have now. my current CSS Code correlating to it is below.

.treemap {

display: flex;

height: 150px;

}

.treemap:first-child > div:first-child {

flex-basis: 25%;

background: midnightblue;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

}

.treemap:first-child > div:first-child > div {

background: lightskyblue;

border: dotted;

}

.treemap:first-child > div:first-child > div:first-child {

width: 40%;

height: 50%;

margin: 10px;

text-align: center;

}

.treemap:first-child > div:first-child > div:last-child {

width: 80%;

height: 25%;

margin: 10px;

}

.treemap:last-child > div:last-child {

flex-basis: 75%;

background: ivory;

display: flex;

flex-direction: column;

}

.treemap:last-child > div:last-child > div {

background: khaki;

width: 41px;

height: 20px;

margin: 6px;

}

Use nested flexible box layouts in this section. Use nested flexible box layouts in this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!