I realized this after trying to add some cool “web 2.0” (*Buzzword – LOL*) features to web 1.0 HTML page. As the page got longer and longer, the lightbox images kept showing up further and further out of position when the lightbox opened. After futzing around with it for a few minutes, I found a cryptic tip that suggested a missing doctype declaration was the problem.
I added a basic I-don’t-care-about-web-standards-cause-it’s-after-10pm doctype —
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
and the problem went away.
So, remember kids to set your DOCTYPES. It’s not just for browsers…
Learn more about DOCTYPE declarations