On Jan 2, 5:58 pm, Michael Gordon <mgordo...@roadrunner.com> wrote:
> 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 Developmentwww.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...- Hide quoted text -
>
> - Show quoted text -

First of all, many thanks for your comprehensive replies.

I should note that I am no expert with either html coding nor css but
I am picking it up. It would obviously pay dividends for me to learn
css.

In the interim David can I clarify something giving my very basic
understanding? I have my html page created in SeaMonkey Composer - are
you saying that I just insert:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
as the first line....

then:

<div>
<div style="margin-left: auto; margin-right: auto;">
<TABLE....>
</TABLE>
</div>
(I want the page to center in every browser so will the above do
this?)

Given my lack of knowledge I see CSS and Standard HTML use as 2
seperate things..... therefore am I mixing the 2 here? In short - will
inserting your suggested code into my existing HTML documents be okay?
Last of all..... will I need to repeat this code for each table tag in
the document or does the document assume the command applies for all
instances of tables on the page?


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

Reply via email to