How to use variables as CSS arguments

How to use variables as CSS arguments

I need to be able to pass a variable to a CSS argument after computing the size of the viewers window height.  I am using an alert function to test it, but so far it won't populate.

  1. $(document).ready(function()    {
  2.       var winHeight = $(window).height();
  3.       var winWidth = $(window).width();
  4.       alert('The dimensions of the window are'+ winHeight + 'pixels high x ' + winWidth + ' pixels wide.');
  5.       });

Any ideas why it's not working?