Stephen Geraghty wrote:
Hi all,

I recently noticed that SeaMonkey pages align left when Internet
Exporer renders them, whereas in Firefox and other browsers they
center align fine.

The only way I have found around this is to insert align="center" in
the html of each table style..... bit of a hassle but thought it would
be okay if I then use that page as a template going forward.

However.. when I edit the properties of a table in any page, in this
instance the table cell spacing, the html command vanishes and I'm
back to the same issue in IE with left alignment!

Am I missing something here or is this a known issue...... and is
there a fix? Do I need to do something in SeaMonkey before I create a
page to ensure it center aligns in IE and what about when i then go to
edit it? Any help would be really appreciated.

Thanks

Stephen,

You are experiencing the differences between a Standards compliant browser (SeaMonkey), and a mostly non-compliant browser (IE). Note; the later versions of IE are more compliant (IE-8) than previous versions.

If you want to make SM and IE render your documents correctly (as seen in SM) then you must begin with a complete DOCTYPE tag in the top of your documents. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";> This is the very first line of your document. You must include all of the tad from the opening bracket < to the closing > bracket. If the last quoted string is omitted IE will not render correctly.

The next requirement is to use CSS2 to format your document content.
Including a "Layer" container will work wonders.  <div>....</div>.

The div container should be just before your TABLE tag and the </div> should be just after the </TABLE> tag.

Within the <div> tag insert the following CSS2 attributes:
style="margin-left: auto; margin-right: auto;
Your <div> tag should look like this:
<div style="margin-left: auto; margin-right: auto;">
<TABLE....>
</TABLE>
</div>

Study the use of CSS, it can be an invaluable tool for setting display properties in your web documents.

Michael G

--
Armadillo Web Development
www.armadilloweb.com

Cell: 903.244.3644

Opening your Door to Opportunity
and inviting the world to walk through.

Character is doing the right thing...
Even when no one is watching...

_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to