The best way to learn about the prepositions is to find a good grammar book or website. This forum is not a good place to explain all of the rules of prepositions because most of us are not grammar experts, and we might mislead you or leave something out. There are many different usages of prepositions, so there is not really enough space here to give a good explanation, although someone might try.