How to display element to another element position – css

I want to use CSS to show the element A at the spot of the element B, how to do this?
Thank you all,