Using jQuery, how can I scroll to a particular div on a page is centered (vertical and horizontal)?
08:56 06 Nov 2014

I have a web page that shows a seating chart (where each seat is a div). In some cases the page is very big so you might have to scroll either right or down to find your seat.

I have a link that includes a the seat name (which is the id of the div of your seat). I would like have some jQuery code that "finds" and "highlights" your seat when the page loads.

What is the best way, when a page loads, to scroll to have a certain div be at the center of the page? Once it's there I can then do something like highlighting the div temporarily to make it stand out.

jquery html jquery-selectors scroll