html - Hiding margin-top after login -
i have following line of codes:
<div align="center" style="margin-bottom: 5px; margin-top: 35px;"> <!-- ad code here --> </div>
please follow site: http://www.electronicsforum.in/
when guest user shows pop-up message 'please login/register'. have no issue this.
after login want hide margin-top
of div
.
this code below fixes issue @ www.electronicsforum.in
global $context; if ($context['user']['is_logged']) { echo'<div align="center" style="margin-bottom:5px; margin-top: 5px;"> ---ad code here 1-- </div>'; } else { echo'<div align="center" style="margin-bottom: 5px; margin-top: 35px;"> ---ad code here else-- </div>'; }
Comments
Post a Comment