SpongeBOB
Well-Known Coder
Hi everyone,
is it possible with CSS only, to set width & height of a child DIV from his parent div -->
I got
so A is a Flex items and get is size from Flex, great.
But I would like that B got the same dimension as A his parent to display something in the background. Is it possible ?
(currently I'm using backgound-image on A but you can't apply filter on this that why I need a work around)
Thanks
is it possible with CSS only, to set width & height of a child DIV from his parent div -->
I got
HTML:
<div id="Flex" style="display:flex;flex-wrap:wrap;justify-content: space-around">
<div id="A">
<div id="B"><img></div>
</div>
</div>
so A is a Flex items and get is size from Flex, great.
But I would like that B got the same dimension as A his parent to display something in the background. Is it possible ?
(currently I'm using backgound-image on A but you can't apply filter on this that why I need a work around)
Thanks