Ok... but theoretically, mutations will still play a role. So if tall and short mutated, why will they not simply mutate again (resulting in a population of tall, medium & short when only medium is optimum) OR mutate to tall or short anyway, against the environment OR mutate away from being giraffes completely because randomness simply is random?
They will.
Mutations are random.
Any mutation can have any of the following effects:
1) The giraffe can be too tall.
2) The giraffe can be the perfect hight.
3) The giraffe can be too short.
4) The giraffe can be dead.
Since mutations are random, it can be any one of the 4.
Now, lets look at each one in turn.
1) The giraffe can be too tall.
When this happens, the giraffe will (statistically) have less offspring, and so, the following generation of giraffes will have less of this mutation. (One for each child.) The generation after that will have less yet, until the mutation dies out.
End result: Mutations that cause the giraffe to be too tall will die out, leaving giraffes that are better adapted.
2) The giraffe can be the perfect hight.
When this happens, the giraffe (statistically) will have more offspring than those that are any other hight. This means that the next generation of giraffes will contain more of this specific mutation than any competing mutations.
End result: Mutations that cause the giraffe to be the perfect hight will slowly spread, since they out compete other mutations.
3) The giraffe can bee too short.
When this happens, the giraffe (statistically) will have less offspring than those that are the perfect hight. This means that the next generation of giraffes will contain less of this specific mutation.
End result: Mutations that cause the giraffe to be too short will die out, for exactly the same reason as mutations that cause the giraffe to be too tall dies out.
4) The giraffe will be dead.
Certain mutations are lethal, and the fetus is aborted, or the fertilized egg doesn't get very far. Even giraffes born with lethal mutations might not reach reproductive age.
End result: These mutations are never propagated, and results in a dead end.
Now that we have examined all the possibilities, it should be clear that no matter what happens, in each and every possible case, the mutations that cause the giraffe to be the perfect length will cause the carrier of that mutation to have more offspring.
This means that there will be more genomes containing this mutation. The same thing will happen the next generation. Those with the beneficial mutation will have more offspring. Depending on total population size, a point will be reached where any giraffe looking for a mate will have a hard time selecting a mate that does NOT have this mutation. Once this point is reached, the mutation becomes fixed, and all giraffes in that particular population will have the mutation. The mutation is no longer the exception, but rather the rule.
Does this answer your question?