added a clearing context to prevent the parent element from collapsing