M
M
mcrack252018-12-13 14:10:48
DLE
mcrack25, 2018-12-13 14:10:48

DLE how to list news with FLEXBOX?

Hello, please tell me who tried to display articles using flexbox in DLE?
There is such a task, the output of 10 articles in 2 rows, 5 for each row. I want to make using Flexbox justify-content: space-between; but the problem is that the general block wrapping them is in the #dle-content block, in principle, I can assign these properties to it, but the problem is that in the same block right after the last article there is navigation (pagination) , it sticks at the end too.
Is it possible to either bring pagination outside the #dle-content block or create a separate wrapper for articles inside the #dle-content block?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Volito, 2018-12-13
@mcrack25

I can offer this option: https://jsfiddle.net/Volito/rqL27bz0/ , and does not depend on the page width and the number of articles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question