Why does Salt Make An Egg Float?

When you add salt to water it makes the water more dense then the egg is which causes the egg to then float. If you weighed two glasses of water and one had salt in it the one with the salt would weigh more.