Variable not being translated

Variable not being translated

In the following code block the variable 'side' is not being translated in the line beginning 'margin-side...'

Can anyone see what I'm doing wrong please?

  1. function centerElement(divid,side)
        {
            divid = "#"+divid;
            jQuery(divid).css({
                top:'50%',
                side: (((jQuery(window).width() - 940)/2)/2) + 'px',
                margin-top:'-' + ( jQuery(divid).height() / 2 )+'px',
                margin-side:'-' + ( jQuery(divid).width() / 2 )+'px'
                });
        }
       
    jQuery(document).ready(function($) {
        centerElement('lhs_adsense','left');
        centerElement('rhs_adsense','right');
    });















Many thanks.


Peter
A Linux Admin

Willing to help maintain Linux servers remotely for a tiny consideration into my Paypal account :-)