+ 1
How do you trim boxes within parent boxes (e.g div within div) after extending their margin outwards (using negative values)?
Consider the code. I want the inner div which is a circle, to be shaped so the sides don't protrude outside parent div. https://code.sololearn.com/WONS6qacXmol/?ref=app
3 ответов
+ 3
Give
overflow: hidden;
To the parent element
Edit: in your case you also need to give
position: relative;
to the parent div
+ 2
Thanks Programador
+ 1
Thank you Krish , I appreciate that.