R
R
Raul Abdullin2018-02-17 23:37:33
css
Raul Abdullin, 2018-02-17 23:37:33

How to vertically align two blocks with each other?

It is necessary to make up, as in the picture (attached), i.e. the left and right sides have been vertically centered.
Made with display: flex; align-items: center; Everything is ok, but at the same time, if I start to reduce the size of the browser, I see that the bootstrap grid has stopped working. The question is, what should I do in my case, so that the grid is saved and centered vertically? Code https://jsfiddle.net/pqvozbbq/1/
5a8891f9ed5ca701117621.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
ink, 2018-02-18
@AskMy

https://codepen.io/topicstarter/pen/ZrvmNK like so... but without bootstrap

Y
Yana Mitrofanova, 2018-02-18
@Raina97

Put display: block after 992 px. On your grid, the blocks will have to stretch by 100% after the 992 px mark, I think vertical alignment is not needed there, respectively, and display: flex too

A
Amir Alimzhanov, 2018-02-21
@Amirez

Try Bootstrap 4 grid, there on flex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question