title: Center a flexible div with jQuery
body: <p>So I have this div which holds a form that has validation messages fade in and out changing the width and height of the div. I have some jQuery to center the div but the problem Im having is when the validation messages fade in and resize the div the jQuery doesn't respond.</p>
  
  <p>I need some code to listen to the width &amp; height of the div?</p>
  
  <p><strong>The code I have currently</strong></p>
  
  <pre><code>resizeElement = '.blurHolder';
  
  var holderHeight = jQuery(resizeElement).outerHeight();
  var holderWidth = jQuery(resizeElement).outerWidth();
  
  jQuery(resizeElement).css({
      'margin-top': - holderHeight / 2,
      'margin-left': - holderWidth / 2
  });
  </code></pre>
  
  <p>Any Help?</p>