Y
Y
YakovSpb2020-09-27 15:22:22
Flexbox
YakovSpb, 2020-09-27 15:22:22

How can I make the first element take double space in flex?

To be like this:
item 1 ______
item 2 item 3
item3 item 4

.admins_inner
  display: flex
  justify-content: space-between
  flex-wrap: wrap
.admin
  width: 50%
  height: 324px
  font-size: 18px
  line-height: 21px
  font-weight: 300
  margin-bottom: 20px
  &:first-child
  &:nth-child(odd)
    padding-right: 20px

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-09-27
@AndreyChaki

If I understand you correctly:

.admin
  width: 50% - удалить
  flex-basis: 50%;
  &:first-child
    flex-basis: 100%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question