Set overflow : hidden on the parent container: This also establishes a new block formatting context, preventing margin collapse.
It helps me to preventing collapse