Layout guides the position and scale of design elements for desirable aesthetics and effective demonstration. Recently, Generative Adversarial Networks (GANs) have proved their capability in generating effective layouts. However, current GANs ignore the situation where the amounts and types of the input design elements are given and determined. In this paper, we propose EcGAN, an element-conditioned GAN for graphic layout generation conditioned on specified design elements (design elements’ amount and types). We represent each element by a bounding box and propose three components: element mask, element condition loss and two-step discriminators, to solve the bounding box modelling problem for element-conditioned layout generation. Experiments reveal that EcGAN outperforms existing methods quantitatively and qualitatively. We also perform detailed ablation studies to highlight the effect of each component and a user study to further validate our model. Finally, we demonstrate two of EcGAN’s applications for practical design scenarios.