I have an item (element A) that I have set to float:right
.
Unfortunately, another element on the page that another team wrote (element B) uses clear:both
, which means that it ends up going below my element, creating an awkward white space. Although the clear:both
was written before I added my element and doesn't have it in mind, I would rather handle this from within my element than change someone else's CSS.
Is there a way to override clear:both so that my element doesn't get cleared, and the other team's item can stay next to mine? Basically, I want element B and element A on the same line, but only through manipulating element A.