FYI, IE 6 likes to center things where IE 5.5 left aligns them.  We wrap
our body content in <div align="center"> then put a table inside that
with align=left.  That breaks in IE 6.  There are two ways to fix it,
described here:

http://www.evolt.org/article/Does_IE_6_Center_Your_Table_Content/17/1534
1/

We chose the easier route.  If you like, add this to your SitePage
class.  All it does is remove the DTD definition.


        def writeDocType(self):
                '''
                Invoked by writeHTML() to write the <!DOCTYPE ...> tag.
This
                implementation specifies HTML 4.01 Transitional.
Subclasses may
                override to specify something else.

                You can find out more about doc types by searching for
DOCTYPE
                on the web, or visiting:
        
http://www.htmlhelp.com/tools/validator/doctype.html
                '''
                #self.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>')
                # @@ JCJ IE 6 doesn't render table contents the same as
old browsers with loose.dtd.
                # See
http://www.evolt.org/article/Does_IE_6_Center_Your_Table_Content/17/1534
1/
                self.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01 Transitional//EN">')


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to