Internal links issue

I used anchor tag to link the links internally. When i click on the links to get to the specified section of the page, the borders, padding , alignment of text, etc gets erased. Anybody can help me solve this ?

Image before clicking on internal links:-

Image after clicking on internal links:-

Any link to your code?

Hey! Actually a minor mistake in my codes were causing it. It got in my sight and now its working properly. Thanks tho! :v: Have a good day!