Characteristics acquired during an organisms life are not passed on through genes..
The disuse of a structure may lead to its eventual disappearance.
Stretching the neck causes gene mutations that then can result in an even longer neck. These genes are then passed on to the giraffes offspring..
Overproduction of offspring leads to a struggle for survival.