I know many women who develop postpartum depression or postnatal depression while they are pregnant. I know it sometimes can't be controlled because of an imbalance in hormones but what is the most common cause for it and how can it be avoided?

And plus what are the effects on a babies health?