J
J
JohhnyT2021-09-24 13:45:58
css
JohhnyT, 2021-09-24 13:45:58

How to make alignment along the length - the center?

This is an offline page of the site. It is not possible to align the layer along the length. On phone/tablet, content is not centered in relation to length. Here is a screenshot and here is the site onehub.ru. Highlighted in red as it should be. If anyone knows, throw off the code and styles how to fix it.

614dac23e162c547475623.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
archelon, 2021-09-24
@JohhnyT

html {
    min-height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
}
.main {
    margin: auto;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question