E
E
elo-dev2020-03-05 22:34:33
css
elo-dev, 2020-03-05 22:34:33

How to align text with images?

It is necessary to align the text at the level with the pictures (photo below). Already the sizes of the container and the block changed.
Here's how it should be:
5e6153b9ba756995409335.png
My text moves out under the pictures, but h1 remains.
5e6153d60d9ab094447058.png
5e6153e010cc4230837810.png
Here is the code:
5e61542419ece326390232.png
5e615433b597a954673523.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2020-03-05
@elo-dev

Divide the text and pictures into two different blocks, also into one main block and set the following parameters for it:

.block {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

/* Ширину блокам картинок и текста задайте 50% */

T
ThunderCat, 2020-03-05
@ThunderCat

You still crooked typesetting, so take a bootstrap already and typesetting at least outwardly normal ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question