Neel05 Thank you allot,
you where right I found out what the problem was, it was cause of how my div had the style set to 100% and there was a div above it so always when I clicked it got moved down so I fixed my dives and now it works. thank you allot for your help. really appreciated. 🙂