Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1323

How to tell if flex-item is being wrapped [closed]

$
0
0

I need to apply different styles if a flex-item is being wrapped. I can't find any css or js indicator that a flex-item is being wrapped.

The browser has to know that the item is being wrapped...

Where can I bubble that up to effect the styles being applied?

I need to have a "spacer" margin when wrapped, but the margin should be removed when the flex item is not wrapped.

Margin must be applied when wrapped

Margin should be reduced when not being wrapped


Viewing all articles
Browse latest Browse all 1323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>