Forum Moderators: open
Quirks Mode vs. Standards Mode [webmasterworld.com]
Regarding the thread about quirks and standard mode: You made a good effort to clear up a very frustrating issue but the contributors made it hard to make sense of everything ("he said, she said").
I think it is the responsibility of the standards organizations to provide helpful workarounds as you did with the 'Tan Hack' ...given that in the real world standards are inconsistently implemented by browsers ... at least not yet.
This is the doctype I always use :
<!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">
<head>
[edited by: tedster at 9:41 pm (utc) on July 31, 2005]
[edit reason] use example.com in code [/edit]
This is the doctype I always use :<!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">
Did you realize you were not using xhtml style tags in the code sample you posted? Sorry I forgot to mention validation earlier - before tackling rendering problems it's a very good idea to make sure your html and css are valid. Otherwise you can put yourself in a position where there actually IS no way to get cross-browser rendering, short of browser sniffing and separate pages.
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]