Jump to content

scrollTop function not working after using Doctype statement


ekuemoah

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...