Welcome to the forums, @iampavankrishna.
It’s always difficult to dianose a problem without seeing the actual code. Do you have a live web page you can link to, so we can see the issue for ourselves?
If not, can you please post either the code or a working example here? (You can find more information about how to do that here.)