Fork me on GitHub
#off-topic
<
2020-03-28
>
jjttjj21:03:19

Css Question: i have these 6 elements, which are sequential children of a div. I have the heights, widths of each. 6 is in the document after 5, but I want it to fill the space below 3 (it should fit). Is it possible to do this without nesting the elements?

jjttjj21:03:47

Here is the current html/css. (The child nodes here are 1-6 in order)

p-himik21:03:06

I don't think it's possible in a general way. I.e. in such a way so that it would work with any number of divs.

jjttjj21:03:43

gotcha, thanks!

jjttjj22:03:37

Actually, I forgot about absolute positioning picard-facepalm which works for this

jsn22:03:38

(unless I misunderstood what you're trying to do)

jjttjj22:03:28

That works too, thank you

orestis06:03:29

Also look into css grid

henrik18:03:27

Echoing @U7PBP4UVA, this is what grid was made for. Promise 80% less HTML/CSS than alternative brands can offer.