Netscape and xhtml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sector024 Media

    Netscape and xhtml

    My question is why netscape doesn't seem to support a style definition in a
    table?

    I have my pages as valid xhtml1.0, and still netscape is not folowing
    orders..

    <table style="text-align:center;">
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table>

    is NOT working for netscape

    <table align="center">
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table>

    IS working for NN7.1 ?!?!

    Why does this happen? W3C says about the "align" tag: "Deprecated . Use
    styles instead."

    Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1 not
    YET made for XHTML support?


  • David Dorward

    #2
    Re: Netscape and xhtml

    Sector024 Media wrote:
    [color=blue]
    > My question is why netscape doesn't seem to support a style definition in
    > a table?
    >
    > I have my pages as valid xhtml1.0, and still netscape is not folowing
    > orders..
    >
    > <table style="text-align:center;">[/color]

    What do you expect to happen?
    http://dorward.me.uk/www/centre/ might be useful.
    [color=blue]
    > Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
    > not YET made for XHTML support?[/color]

    Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
    really HTML)

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>

    Comment

    • Sector024 Media

      #3
      Re: Netscape and xhtml


      "David Dorward" <dorward@yahoo. com> schreef in bericht
      news:c7i635$50h $1$8300dec7@new s.demon.co.uk.. .[color=blue]
      > Sector024 Media wrote:
      >[color=green]
      > > My question is why netscape doesn't seem to support a style definition[/color][/color]
      in[color=blue][color=green]
      > > a table?
      > >
      > > I have my pages as valid xhtml1.0, and still netscape is not folowing
      > > orders..
      > >
      > > <table style="text-align:center;">[/color]
      >
      > What do you expect to happen?
      > http://dorward.me.uk/www/centre/ might be useful.
      >[color=green]
      > > Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
      > > not YET made for XHTML support?[/color]
      >
      > Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
      > really HTML)
      >
      > --
      > David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>[/color]

      The thing is, that i needed to align a table, which works fine in IE (using
      the style="" tag) but it doesn't work in NN..
      I needed to put the normale align="center" in the table to center it.. other
      options didn't work (even when the table was placed inside a <div
      style="text-align:center;"> tag.

      My question is, why (if NN has this behaviour) the normale align="center"
      tag is deprecated by W3C?
      On their website they say: 'Deprecated. Use styles instead.'


      Comment

      • Owen Jacobson

        #4
        Re: Netscape and xhtml

        On Sat, 08 May 2004 10:58:59 +0200, Sector024 Media wrote:
        [color=blue]
        >
        > "David Dorward" <dorward@yahoo. com> schreef in bericht
        > news:c7i635$50h $1$8300dec7@new s.demon.co.uk.. .[color=green]
        >> Sector024 Media wrote:
        >>[color=darkred]
        >> > My question is why netscape doesn't seem to support a style definition[/color][/color]
        > in[color=green][color=darkred]
        >> > a table?
        >> >
        >> > I have my pages as valid xhtml1.0, and still netscape is not folowing
        >> > orders..
        >> >
        >> > <table style="text-align:center;">[/color]
        >>
        >> What do you expect to happen?
        >> http://dorward.me.uk/www/centre/ might be useful.
        >>[color=darkred]
        >> > Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
        >> > not YET made for XHTML support?[/color]
        >>
        >> Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
        >> really HTML)[/color]
        >
        > The thing is, that i needed to align a table, which works fine in IE (using
        > the style="" tag) but it doesn't work in NN..
        > I needed to put the normale align="center" in the table to center it.. other
        > options didn't work (even when the table was placed inside a <div
        > style="text-align:center;"> tag.
        >
        > My question is, why (if NN has this behaviour) the normale align="center"
        > tag is deprecated by W3C?
        > On their website they say: 'Deprecated. Use styles instead.'[/color]

        Yes. You have misinterpreted *which* style to use. "text-align: center"
        centers the contents of an element, not the element itself. To center a
        block element, set both horizontal margins to the same size; if you don't
        have a size in mind, 'auto' will center using up as much space as needed
        on either side.

        Internet Explorer gets this wrong (except IE 6 in Standards mode; ask
        others, as I don't believe in browser quirks). In general, if something
        displays differently in Mozilla (on which Netscape 7.1 is based) and IE,
        or in Opera and IE, or in pretty much any modern browser and IE, it's safe
        to assume IE's rendering is incorrect.

        There are exceptions, but there aren't that many.

        --
        Some say the Wired doesn't have political borders like the real world,
        but there are far too many nonsense-spouting anarchists or idiots who
        think that pranks are a revolution.

        Comment

        • David Dorward

          #5
          Re: Netscape and xhtml

          Sector024 Media wrote:
          [color=blue][color=green][color=darkred]
          >> > <table style="text-align:center;">[/color]
          >>
          >> What do you expect to happen?
          >> http://dorward.me.uk/www/centre/ might be useful.[/color][/color]
          [color=blue]
          > The thing is, that i needed to align a table, which works fine in IE
          > (using the style="" tag) but it doesn't work in NN..[/color]

          It shouldn't work anywhere, see the document I referenced.
          [color=blue]
          > My question is, why (if NN has this behaviour) the normale align="center"
          > tag is deprecated by W3C?
          > On their website they say: 'Deprecated. Use styles instead.'[/color]

          The deprecation of HTML elements and attributes (in this case) is because
          HTML is the wrong tool for the job and it should be done using CSS, not
          because of any particular level of browsers support.

          That said, it is your CSS and Internet Explorer's handling of it that is at
          fault here, not Netscape. See the document I referenced.

          --
          David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>

          Comment

          • Sector024 Media

            #6
            Re: Netscape and xhtml


            "David Dorward" <dorward@yahoo. com> schreef in bericht
            news:c7i8ou$mta $1$8302bc10@new s.demon.co.uk.. .[color=blue]
            > Sector024 Media wrote:
            >[color=green][color=darkred]
            > >> > <table style="text-align:center;">
            > >>
            > >> What do you expect to happen?
            > >> http://dorward.me.uk/www/centre/ might be useful.[/color][/color]
            >[color=green]
            > > The thing is, that i needed to align a table, which works fine in IE
            > > (using the style="" tag) but it doesn't work in NN..[/color]
            >
            > It shouldn't work anywhere, see the document I referenced.
            >[color=green]
            > > My question is, why (if NN has this behaviour) the normale[/color][/color]
            align="center"[color=blue][color=green]
            > > tag is deprecated by W3C?
            > > On their website they say: 'Deprecated. Use styles instead.'[/color]
            >
            > The deprecation of HTML elements and attributes (in this case) is because
            > HTML is the wrong tool for the job and it should be done using CSS, not
            > because of any particular level of browsers support.
            >
            > That said, it is your CSS and Internet Explorer's handling of it that is[/color]
            at[color=blue]
            > fault here, not Netscape. See the document I referenced.
            >
            > --
            > David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>[/color]

            Ok, it seems more clear now..
            I have looked @ the doc David referred to.

            Thanks for your replies, i will sudy some more :)
            (starting @ david's website)
            greetings


            Comment

            • Deirdre Saoirse Moen

              #7
              Re: Netscape and xhtml

              Sector024 Media <info@sector024 .nl> wrote:[color=blue]
              > My question is why netscape doesn't seem to support a style definition in a
              > table?
              >
              > I have my pages as valid xhtml1.0, and still netscape is not folowing
              > orders..
              >
              > <table style="text-align:center;">
              > <tr>
              > <td>&nbsp;</td>
              > </tr>
              > </table>[/color]

              Did you try:

              <p "text-align:center;">
              <table>
              ...
              </table>
              </p>

              ?

              --
              _Deirdre http://deirdre.net
              "Ideally pacing should look like the stock market for the year 1999, up
              and up and up, but with lots of little dips downwards...."
              -- Wen Spencer on plotting a novel

              Comment

              • Shawn K. Quinn

                #8
                Re: Netscape and xhtml

                Deirdre Saoirse Moen wrote:
                [color=blue]
                > Sector024 Media <info@sector024 .nl> wrote:[color=green]
                >> My question is why netscape doesn't seem to support a style definition in
                >> a table?
                >>
                >> I have my pages as valid xhtml1.0, and still netscape is not folowing
                >> orders..
                >>
                >> <table style="text-align:center;">
                >> <tr>
                >> <td>&nbsp;</td>
                >> </tr>
                >> </table>[/color]
                >
                > Did you try:
                >
                > <p "text-align:center;">
                > <table>
                > ...
                > </table>
                > </p>[/color]

                Even if you assume you intended the first line to be <p style="text-align:
                center;"> this still isn't valid HTML. You can't put <table> inside <p>.

                --
                Shawn K. Quinn

                Comment

                • Deirdre Saoirse Moen

                  #9
                  Re: Netscape and xhtml

                  Shawn K. Quinn <skquinn@xeviou s.kicks-ass.net> wrote:[color=blue]
                  > Even if you assume you intended the first line to be <p style="text-align:
                  > center;"> this still isn't valid HTML. You can't put <table> inside <p>.[/color]

                  Ah, I was trying to remember if that was valid, but a quick look didn't
                  offer the answer to that. I'm away from my usual library, alas.

                  --
                  _Deirdre http://deirdre.net
                  "Ideally pacing should look like the stock market for the year 1999, up
                  and up and up, but with lots of little dips downwards...."
                  -- Wen Spencer on plotting a novel

                  Comment

                  • C A Upsdell

                    #10
                    Re: Netscape and xhtml

                    > Sector024 Media <info@sector024 .nl> wrote:[color=blue][color=green]
                    > > My question is why netscape doesn't seem to support a style definition[/color][/color]
                    in a[color=blue][color=green]
                    > > table?
                    > >
                    > > I have my pages as valid xhtml1.0, and still netscape is not folowing
                    > > orders..
                    > >
                    > > <table style="text-align:center;">
                    > > <tr>
                    > > <td>&nbsp;</td>
                    > > </tr>
                    > > </table>[/color][/color]

                    Try <table style="margin-left:auto; margin-right:auto;">

                    Netscape 7 is doing the right thing. IE is not.




                    Comment

                    Working...