[jQuery] Vertically aligning a div

[jQuery] Vertically aligning a div


Hi, very new to jQuery, but suspect it can probably help me out.
I have a div of a fixed height (auto scroll where content exceeds that
height), that I would like to center vertically on the page. I'm
assuming I can use jQuery to work out the height of the browser
window, subtract the height of the div and then apply margin-top and
margin-bottom at 50% of that result to achieve what I'm after - but am
very lost as to the syntax involved.
Any help gratefully received!
TIA