page loads diffferently on initial load from refresh
I am new to JQuery and have been testing some things in order to learn.
On this test page I created I attempted to center the text inside a menu according to its container.
I thought it would be straight forward.
Initially when visiting the page with both, Mac, FF 3 and Safari 4 the effect works well. However, if I hit refresh, the page is reloaded and the recalculated values are using the window element as their container instead of the li element.
Please visit:
http://www.nodaradio.com/ramon/index2.html
At the bottom of the page I have printed the values used to calculate the margins, as well as some extra ones I used just to be certain I was doing the right thing.
I am using JQuery 1.3.2.
All help is much appreciated.
Thanks.