N
N
Norum2021-05-04 04:39:34
css
Norum, 2021-05-04 04:39:34

How to undo wrapping of flex items to the next line?

How to cancel the transfer of a flex element to another line so that it looks at 768px like this
6090a56476898627412826.jpeg

I get it, although at a slightly higher resolution everything is fine, but reaching 768 it is transferred
6090a596005f0135280243.jpeg

Code https://jsfiddle.net/Le9unvc2/

Website tempessj.beget .tech

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fin Del, 2021-05-04
@Norum

<div class="col img"> <div class="col desc">wrap in div

S
Searcher8, 2021-05-04
@searcher8

For flex items, this behavior may be due to the fact that the size of the container does not fit all the elements, so that they stand in one row.
I advise you to open the developer tools in the browser and through the selection of the page element, when the screen size changes, see the highlighted margins, paddings and the very width of the elements.
Plus, if you have it , it means that if all the elements nested in the container do not fit into it in one row, those elements that do not fit into it will be moved to the next line. flex-wrap: wrap;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question