I suck at CSS/HTML
- Started
- Last post
- 4 Responses
- genfour
So I'm using Business catalyst to automatically generate things like blog, ecommerce, etc. This is what I'm trying to do.
I have a div:
<div class="noComments">This post has no comments. </div>
or if there are comments business catalyst will generate it so it's like this:
<div class="noComments">
<div class="comment-details"> Name, Date, Etc </div>
<div class="comment"> The user's comment </div>
</div>What I'm trying to do is hide the whole div .noComments if the post has no comments but show it if the div's .comment-details, .comment are in there. i think I'm not using descendant selectors right. help?
- Miesfan0
Can you do something to delete team Zissou account?
Thks. ;-P
- mikotondria30
I'd search in the source and try to find 'This post has no comments', then just replace it or comment it out.
- seeessess0
Use jquery?
$('.comment:empty').hide();
It has to be totally empty though, i.e. <div class="comment"></div>, no whitespace or anything.
- genfour0
figured it out... just used the "visibility" property!