Good day.
There is a tile of categories http://rose.e-tickets.org.ua/cvety/ However, for some reason, the 5th element is transferred to the right. And should go left. Tell me what could be the problem?
Good day.
There is a tile of categories http://rose.e-tickets.org.ua/cvety/ However, for some reason, the 5th element is transferred to the right. And should go left. Tell me what could be the problem?
Your items have slightly different heights. 
And even despite the difference less than 1 pikela, because of this, the element is transferred to a new line.
You can give all elements a fixed height (for example, 198 or 199px) and this will fix the situation.
Tell me what could be the problem?
But the problem is generally in the use of layout with hacks float, clear, etc. Use flexbox. If you give the container display: flex; flex-wrap: wrap; display: flex; flex-wrap: wrap; then your problems will be solved.
Source: https://ru.stackoverflow.com/questions/595728/
All Articles
<div style="clear:both"></div>after the 4th element. This is an example, the style, of course, needs to be brought to the class - Maximmka