search

Home  >  Q&A  >  body text

How to make rows with different heights equal height in CSS3 flex?

I want the two li's with different heights to be of equal height

I use ul and li to arrange, and the parent element ul is set

display: flex;
align-items: flex-end;

Sub element li is set to:

flex: 0 0 50%;

I set the align-items of the parent element to stretch and it becomes like this. . .

How to set it up so that two li in the same row with different heights can be of equal height

仅有的幸福仅有的幸福2752 days ago5014

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:29:44

    align-items attribute

    reply
    0
  • Cancelreply