At the latest, while I was battling through the third target I wished myself guidance. Sure, there are GitHub repositories like this one, but they ...
For further actions, you may consider blocking this person and/or reporting abuse
At the solution 3, the margin-collapsing mechanism is the reason leads to the issue you met, with
overflow: hidden, it will prevent margin-collapsing, so it's working as expected.I have other solution: just using a div tag and take advantage of it pseudo
::afterto create the circle inside it:Earlier I thought the only way to the center is to use flexbox or grid I learned the margin thing works too
and I was confused between the use of relative and position but now all doubts cleared here. Border kind of pain as I usually forget border-style: solid and then I scratch my head.
Nevertheless great work from Olzhas. You help real people learn!
We can use combination of outline and border to achieve this
Wow amazing!!! Button!!!War Won!!! It's a Battle Ground and then a PlayGround!!! Pick your Computer Programming Language Instruments Wisely!!!
Dreamweaver HTML CSS JavaScript.
Wiltel49@gmail.com...C#
AAS ITI MICHIGAN
Hi, I do not fully understand "overflow: hidden" behavior, but here is a solution (a very long one though) which doesn't make use of overflow:
* { margin:0; background:#6592cf; } #rectangle { width:300; height:150; background:#243d83; margin:75 auto } #circle { width:50; height:50; background:#eeb850; border-radius:50px; box-shadow: 0 0 0 50px #243d83, 0 0 0 100px #6592cf; margin:0 auto; position:relative; top:50; }