L
L
lesmanora2020-05-16 16:30:07
PHP
lesmanora, 2020-05-16 16:30:07

How to output articles from the database with different style?

You need to make such a grid for outputting articles from MySQL (see photo). I know how to simply display articles with 1 style, but I can’t even figure out how to do this. Through a cycle? Can anyone help or have an example?

5ebfea42b4212734141111.png

The site is written without constructors, only using Bootstrap.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-05-16
@lesmanora

The list is divided by 3 in even there is the first cell of full height and 2 half, in odd 2 half and the last full, all this is done in-line-block and stuffed into one rows bootstrap will decompose everything itself

F
FanatPHP, 2020-05-16
@FanatPHP

Through a cycle?

Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question