Using variable for a css style in jQuery code

Using variable for a css style in jQuery code

Hi,

I am trying to use a variable for a css like:
  1. tab_infocenter.css({position:relative;left:tempX;)});
Where tempX is a variable. Its giving me error.

So what is the correct way to do it? Thanks.