I\'m generating a page for an upcoming portal site, and I\'ve got an HTML element with some optional content. I\'d like the element to not render if it is empty, but adding some
If it's necessary to have the div.someElement
in the HTML, the best CSS/HTML way to do that would be to add an extra div
around the added content that has the padding property
.someElement > div{padding-top:5px;}
Content
Otherwise, do as Pekka says, or take a look at having javascript do it for you.