When linking to a jqueryui tab from an external page, I use
<a href="page.html#tab-3">link</a>
and this functions fine most of the time as the page loads with the respective tab displaying.
The issues start when I have a lot of content inside one of these tabs. When the page first loads the tab contents loads without jquery styling (as a long linear list) and then the jqueryui styles loads but I am scrolled to the bottom of the page.
I understand that I am scrolled to the bottom of the page because that is where the #tab-3 ID/NAME is on page load. How can I then link to the parent tab group rather than the ID I am linking to?
I would actually like to be scrolled about 50px above the tab group so our visitors can see which tab is selected.
I am using jquery 1.10.2 and jquery-ui-1.10.3.