You don't need to apply position:absolute
to the nested div
.
And margin
probably wouldn't be the best practice in this case.
Just add position:relative
to the nested div
, and set it's top
to any number you want. In your case, it would probably be negative.
Check out this Fiddle.
overflow: hidden
on the parent would have done it perfectly !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With