I actually figured it out. I had to add this to the top of my page:
<!DOCTYPE html>
This validator is a great tool:
http://validator.w3.org/
I have fixed the problem on my example page that had the issue, but before I fixed it by adding <!DOCTYPE html> it was completely broken.