1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin

Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

Did you know that DOCTYPEs can affect scroll bars?

Tuesday July 10, 2007
A little known "feature" of Internet Explorer 6.0 will add a horizontal scroll bar to the browser window when using a DOCTYPE in a certain (fairly common) way.
WWW
Image courtesy clix from StockXchng #449243.
It's always a good idea to define a DOCTYPE to avoid putting the Web browser into "quirks" mode. But there's more to the Document Type Declaration or DOCTYPE than just what tags are supported or which quirks are in play. Learn how to use the DOCTYPE declaration in your Web pages so that you don't end up with unexpected scroll bars or other strange behaviors. And there are lots of DOCTYPES you can choose from, but be sure to use one on all your Web pages.

Go to the article on why to use DOCTYPE to find out more about how DOCTYPE can affect your scroll bars in IE 6.

Comments

July 10, 2007 at 9:51 am
(1) User says:

What fairly common way? For god’s sake enlighten us, instead of leaving us in the dark.

July 10, 2007 at 10:47 am
(2) Regular reader says:

I agree User. It’s OK if you want to pique curiosity and then put the answer in the article but to leave your readers hanging risks losing those readers altogether!!

July 10, 2007 at 1:19 pm
(3) Jennifer Kyrnin says:

The blog post is just a blurb describing the article that is always linked at the end of the post in a bulleted list. If you refuse to click through links on blog posts, then you won’t find the answer.

The blog posts on this site are just blog posts - they aren’t articles. I didn’t leave anyone hanging - the answer is in the third section of the article Why Use DOCTYPE Declarations posted in the blog entry.

July 11, 2007 at 12:23 am
(4) Regular reader says:

Thanks!!
I had read the article at lots of Doctypes you can choose from - hadn’t clicked on the why to use doctypes as I already knew that.
Thanks very much for responding.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2008 About.com, a part of The New York Times Company.

All rights reserved.