CSS: div#comments shows when comments are off
-
Hi all, I’m doing pretty well with making my own theme having started with BlankSlate and now adding all my own CSS. One thing bugging me:
When a post or page has comments turned off; it still outputs this line:
<div id="comments"></div>
I have styled that div#comments with a padding and border etc; so even if the comments feature is disabled I get an empty 20px high blank box based on my padding of 10px.
Shouldn’t that div be taken away entirely when comments are disabled?
You can see the problem on my test site: lars mullen dot co dot uk forward slash test. It’s on all the pages except the Gallery page which is a category page. See useless rounded box below the content.
What am I doing wrong?
Cheers…
- The topic ‘CSS: div#comments shows when comments are off’ is closed to new replies.