N
N
Nick_2282019-02-19 19:38:52
Flexbox
Nick_228, 2019-02-19 19:38:52

Explanation on working with flex?

The question is probably childish, but still. I'm trying to master the layout through flex, but it doesn't work. You need to center the block in the center, but it is not centered. Please explain how to do it right.

* {
  
}
body {
  margin: 0;
  padding: 0;
}
.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 1232px;
  min-height: 3000px;
  border: 2px solid red;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-02-19
@Nick_228

align-items: center;
https://codepen.io/justd/full/yydezN/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question