[jQuery] Re: Vertically aligning a div

2008-03-06 Thread TheOriginalH
You sir are a star! I've trimmed the code so it applies only vertically and it's working well except when the viewport is taken lower than 550px in height. Again, trying to get my head around syntax here. I'm sure it's simply a case of stopping the behaviour if $(window) is equal to or less t

[jQuery] Re: Vertically aligning a div

2008-03-05 Thread Hamish Campbell
My solution from: http://groups.google.com/group/jquery-ui/browse_thread/thread/35a33d1c50f0e724/e527c8f47ba183e0?lnk=gst&q=extend+center# and in action at www.deft.co.nz $(document).ready(function() { jQuery.fn.centerScreen = function(loaded) { var obj = this;