In this article we proved an interesting property of the class of continuous convex functions. This leads to the form of pre-Hermite-Hadamard inequality which in turn admits a generalization of the famous Hermite-Hadamard inequality. Some further discussion is also given.