31/31 Испытание сложная палитра 96 %

Вот решил повторить теорию флексбоксов и затык в испытании палитра. в четвёртом квадрате не работает свойство align-items: flex-end. Почему?

вот весь код :slight_smile:`

.palette-small {
    display: flex;    
    }

.palette-box:nth-child(1) .palette-small {    
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
} 

.palette-box:nth-child(1)  [class$="2"],
.palette-box:nth-child(1)  [class$="5"]
{ 
    align-self: stretch;
}

.palette-box:nth-child(1)  [class$="4"] {
    order: -1;
}

.palette-box:nth-child(1)  [class$="3"] {
    order: 1;
}

.palette-box:nth-child(2) .palette-small {    
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-end;
}    
.palette-box:nth-child(2) [class$="1"],
.palette-box:nth-child(2) [class$="4"]
{
    align-self: flex-start;
}
    
.palette-box:nth-child(3) .palette-small {    
    justify-content: space-between;
    align-items: space-between;
}

.palette-box:nth-child(3) .palette-small .part {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
    
.palette-box:nth-child(4) .part {
        display: flex;
}

.palette-box:nth-child(4) .part:last-child {
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-end;
} `

Вы не с той стороны подошли. Внутри последней .palette-small у вас есть две .part, которые нужно разместить на максимальном расстоянии друг от друга.
Вы уже делали так для третьей .palette-small:

2 лайка

Благодарю