Kill border by using PHP? In my theme on Drupal 7:50 there is #banner just beneath #menu. For #banner I have made {border-bottom:5px solid blue} The problem is that sometimes #banner is empty and then the #border remains and goes up beneath #menu and that kills the layout.

Is there a way to #banner{display:none} if "banner is empty by using PHP or how to do it. All suggestions are welcome. Killing the border with JS and CSS if #banner height is below 5 ?

Hans
One way would be to set a minimum height on #banner. That way when #banner is empty of content, there will still be a space between #menu and the border. This solution does not require you to involve PHP at all.

#banner {
  min-height: 10px;
}