Why can objects be made to float in a magnetic field? THANK YOU!

There is a property of matter called

diamagnetism. Look that up.