Jump to content

scrollTop function not working after using Doctype statement


ekuemoah
 Share

Recommended Posts

When I included my Doctype statement at the top of my html pages, I found that the scrollTop property did not work and I could not get my menu to scroll on the page. I used a scroll menu function I found on your website. Does anyone know how I can fix this? This happened for all of the DOCTYPE statements. I also noticed that it shifted all of my text to the right side of the screen after placing this at the top of the page.

Link to comment
Share on other sites

When you put a DOCTYPE, the document is parsed more strictly. You probably have a mistake that the browser let slide while in quirks mode.Show some of your code to see where the problem is.

Edited by Ingolme
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...