I am aware that to autoscroll to a div, I can specify #id in the url as so:
example.com/page#id
How would I construct a url such that the page is scrolled to #id AND the div is centered in the page? This is opposed to the default behavior, which is to just scroll such that the div is positioned touching the top of the page.