page rendering is inconsistent

  • Thread starter flintridgeparkenfarker vonkerschnauzerheiden
  • Start date
F

flintridgeparkenfarker vonkerschnauzerheiden

If I add this to the top of the source page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

....it will not display correctly with the URL included at the end going to
loose.dtd

If I add the URL then the javascript statement: document.body.scrollTop
always returns zero. If I remove the URL, then scrollTop returns the correct
value, but the style statement: .sm {font-size:x-small} doesn't work. As a
matter of fact I'm unable to change the fontsize with any statement if that
URL is included in the page directive (or whatever it is).

Can anyone shed any light on this for me?

WinXP; IE 6.0.2800.blah.blah.blah

Thanks,
 
C

C A Upsdell

flintridgeparkenfarker said:
If I add this to the top of the source page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

...it will not display correctly with the URL included at the end going to
loose.dtd

If I add the URL then the javascript statement: document.body.scrollTop
always returns zero. If I remove the URL, then scrollTop returns the correct
value, but the style statement: .sm {font-size:x-small} doesn't work. As a
matter of fact I'm unable to change the fontsize with any statement if that
URL is included in the page directive (or whatever it is).

Can anyone shed any light on this for me?

Using that DOCTYPE with the URL puts IE6 into standards mode, where IE
tries to render pages more in accordance with the standards. If the
page does not display 'correctly', then there is a good chance that your
code is faulty.

You should start by validating your HTML and CSS.

BTW, 'font-size:x-small' will have different results with IE than it
will on all other browsers, because IE has traditionally chosen a font
size one step down from what it should. The result may be that text
that is readable with IE may be unreadable with other browsers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top