Exposure to an imbalance of nutrients prior to conception and during critical developmental periods can have lasting consequences on physiological processes resulting in chronic diseases later in life. Developmental programming has been shown to involve structural and functional changes in important tissues. The aim of the present study was to investigate whether early life diet has a programming effect on the mammary gland. Wild-type mice were exposed from 2 weeks prior to conception to 6 weeks of age to a regular low-fat diet, or to high-fat diets based on either corn oil or flaxseed oil. At 6 weeks of age, all mice were shifted to the regular low-fat diet until termination at 10 weeks of age. Early life exposure to a high-fat diet, either high in n-6 (corn oil) or in n-3 (flaxseed oil) polyunsaturated fatty acids, did not affect birth weight, but resulted in an increased body weight at 10 weeks of age. Transcriptome analyses of the fourth abdominal mammary gland revealed differentially expressed genes between the different treatment groups. Exposure to high-fat diet based on flaxseed oil, but not on corn oil, resulted in regulation of pathways involved in energy metabolism, immune response and inflammation. Our findings suggest that diet during early life indeed has a lasting effect on the mammary gland and significantly influences postnatal body weight gain, metabolic status, and signaling networks in the mammary gland of female offspring.