Negative margin element clipped outside of div only in one case?
I have given a small amount (-7px) negative margin to a div to align the
text with an image next to it.
The divs have some different sizes according to a few media queries.
Everything works fine except in the largest size which, for some reason,
adds a small scrollbar and the negative margin is suddenly clipped.
I have no idea why this is happening?
Even adding height to the parent doesn't help and the scrollbar still
appears for some reason?
For the life of me I can't recreate it in jsbin either, so I'm wondering
if anyone had any tips on what could be causing the sudden appearance of a
scrollbar/clipping?
No comments:
Post a Comment