You can do this in CSS:
.login-form { margin-top: 0px; } .portlet-msg-error:first-child { margin-top: 70px; }
The same thing in jQuery would be:
$('.login-form').css('margin-top', '0px'); $('.portlet-msg-error:first-child').css('margin-top', '70px');
So you see that in this case there is no real reason to use jQuery.
source share