Lamarck's idea was that a giraffe's neck grew longer because it tried to reach higher up. This idea failed because it conflicts with heredity (Mendel's work). Mendel made his discoveries about half a century after Lamarck's work.