this aint exactly dhtml or javascript but hope to get some help here..
IE6 with !doctype
========================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>none</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
</head>
===========================================================
when i use the above, IE will not go into strict standards-compliant mode, that is, it will have the box model problem, intepreting the box model wrongly.
however if the <?xml ...> is removed, it is able go into the strict mode and intepret the box model properly...
BUT the strange thing is that the moment i removed the <?xml...> the scroller bar will not be displayed in the colors specified in the css !!
the same applies to the iframe in the same page!
so in order for the scroller bar to look like it's meant to be in the css, i haf to insert the <?xml..> but then IE will not go into the strict mode... and hence box model IS intepreted wrongly!!
in a dilemma...
can someone help?
evo.lanche - evolve. the only constant in life.