how to change display direction depend of child of container
how to change display direction depend of child of container
for example if have 3 childs display direction unset if not display direction : column
2 Replies
its not fully supported in all browsers yet. but with the :has() selector you can check if nth-child(3) excists
for example
mind if I ask why you want to do this? It sounds like something that could potentially be solved in a better way
(what Mark said works fine, btw, but yeah, no full browser support just yet https://caniuse.com/css-has)