In front of a building vs. oppos
"In front of a building" and "opposite a building" are both used to describe the relative position of one thing to another, but they have slightly different meanings.
"In front of a building" refers to something that is located ahead or before the building when you're facing it. For example, if you're standing in front of a building and there's a fountain directly ahead of you, we'd say the fountain is in front of the building.
"Opposite a building" refers to something that is located across from the building, usually in reference to the other side of a road, street, or other dividing feature. For example, if there's a café directly across the street from a library, we'd say the café is opposite the library.
In essence, "in front of a building" indicates a position directly ahead of the building, while "opposite a building" refers to something facing the building from the other side of a dividing feature, often a street or a road.