var contentPara = $('body.page-content .news-article.news-details, body.node-type-tep-blogs .news-article.news-details').find('p:nth-child(3)'); if((parallaxFlg.css('display') == 'none')){ contentPara.css({'margin-bottom': '0'}); }