This just got a little more interesting. In IE 6 and 7 the content jumps down, in IE 8 and FF it jumps up and in Opera 9.5 it is perfect, hmmm
Any thoughts? Thanks, Schalk Schalk Neethling wrote: > Hi there, > > I had my first experience with jQuery today and I am experiencing a > little hick-up. When you go to www.satechevents.co.za you will find two > links under the site logo. > > When you click on either of these I use the slideToggle method to hide > and show the relevant content. Everything works fine except, when you > click on the link the content 'loads' and right at the end jumps up a > couple of pixels. > > I am assuming this might have something to do with default browser > functions on links marked up as anchors. With this I tried to use the > bind event and also returned false from the function in an attempt to > prevent the default action and event bubbling as follows: > > $("#about-link").bind("click", (function() { > $("#contact").hide(); > $("#about").slideToggle("slow"); > return false; > })); > > Where am I going wrong? Any help or pointers much appreciated. > Schalk >