Sorry for taking your time with this post, I have solved the issue myself.
I simply recommend negative top value(eg:top:-5em) instead negative margin-top value(eg: margin-top:-5em) with the element inside the div instead of the whole div. As it can cause the space below which is hard to fix.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.