.hiddenClass { display: none; } div.showClass, p.showClass { margin-top: 1em; margin-bottom: 1em; text-align: center; display: block; }