Michael Bruel wrote: > Hello All, > > We¹ve been having problems with our HTML page when using IE8 and certain > doctypes. > > When we attempted a style.position = ³absolute² (and subsequent manipulation > of the div) with the following doctypes, it worked fine: > > Worked fine: > > * No doctype > > * <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > > * <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > > However, when using the following 4 doctypes, the div would not ³float² and > did not behave the way it should have (expand dimensions, contract, etc): > > * <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > * <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > * <?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"> > > * <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >
Hmm. "style.position = 'absolute' does not look like CSS to me... FWIW All versions of Internet Explorer behave like IE 5.5 with those first 3 conditions. An xml prolog (or whatever it's called) will make IE6 behave like IE 5.5. Other than that fine snippet of wisdom, I can't really help without knowing what your problems might be. An actual Web page would help. Are you sure this is a CSS question? Cordially, David -- ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
