Table alignment problem

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

    Table alignment problem

    Hi,

    I'm having a problem with a table alignment, it won't top-align.

    Background info: above the table, a dozen lines of js code and a bit
    of programming code, none has HTML space-taking code like <br> or <p>
    etc. Tons of logic inside the TABLE, in and out of TR, but all TRs
    are closed properly and have same number of TD, which are also closed
    properly. But the table is left aligned and vertically sort of
    centered in the page, though the HTML code says, <table valign="top">
    or <table valign="top" align="top">.
    FYI, HTML version
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,
    ua/browser, IE6.0

    Is there any way to force the table to be (page) top aligned? CSS,
    position? div? span? or ...?

    TIA.
  • Steve Pugh

    #2
    Re: Table alignment problem

    donli@yahoo.com (DonLi) wrote:
    [color=blue]
    >Background info: above the table, a dozen lines of js code and a bit
    >of programming code, none has HTML space-taking code like <br> or <p>
    >etc. Tons of logic inside the TABLE, in and out of TR, but all TRs
    >are closed properly and have same number of TD, which are also closed
    >properly. But the table is left aligned and vertically sort of
    >centered in the page, though the HTML code says, <table valign="top">
    >or <table valign="top" align="top">.[/color]

    There is no valign attribute for table so that does nothing.
    [color=blue]
    >FYI, HTML version
    ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,
    >ua/browser, IE6.0
    >
    >Is there any way to force the table to be (page) top aligned? CSS,
    >position? div? span? or ...?[/color]

    Have you removed the default margin on <body>?

    Other than that, what's the URL?

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    • DonLi

      #3
      Re: Table alignment problem

      Steve Pugh <steve@pugh.net > wrote in message news:<87hr601h6 foom0hkc61nr129 5ph15bhsv7@4ax. com>...[color=blue]
      > donli@yahoo.com (DonLi) wrote:
      >[color=green]
      > >Background info: above the table, a dozen lines of js code and a bit
      > >of programming code, none has HTML space-taking code like <br> or <p>
      > >etc. Tons of logic inside the TABLE, in and out of TR, but all TRs
      > >are closed properly and have same number of TD, which are also closed
      > >properly. But the table is left aligned and vertically sort of
      > >centered in the page, though the HTML code says, <table valign="top">
      > >or <table valign="top" align="top">.[/color]
      >
      > There is no valign attribute for table so that does nothing.
      >[color=green]
      > >FYI, HTML version
      > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,
      > >ua/browser, IE6.0
      > >
      > >Is there any way to force the table to be (page) top aligned? CSS,
      > >position? div? span? or ...?[/color]
      >
      > Have you removed the default margin on <body>?[/color]
      Currently, the BODY tag has only one attribute of bgcolor.
      [color=blue][color=green]
      >> Other than that, what's the URL?[/color][/color]
      Sorry it's inside a firewall.

      Thanks.[color=blue]
      >
      > Steve[/color]

      Comment

      • Steve Pugh

        #4
        Re: Table alignment problem

        donli@yahoo.com (DonLi) wrote:[color=blue]
        >Steve Pugh <steve@pugh.net > wrote in message news:<87hr601h6 foom0hkc61nr129 5ph15bhsv7@4ax. com>...[color=green]
        >>
        >> Have you removed the default margin on <body>?[/color]
        >
        >Currently, the BODY tag has only one attribute of bgcolor.[/color]

        But what about it's styles?
        The only attributes of body that affect its margins are out-of-date,
        non-standard, browser-specific hacks.
        [color=blue][color=green][color=darkred]
        >>> Other than that, what's the URL?[/color][/color]
        >
        >Sorry it's inside a firewall.[/color]

        Make a copy with sensitive info removed and stick it on some free web
        space. Otherwise we can't help you.

        Steve

        --
        "My theories appal you, my heresies outrage you,
        I never answer letters and you don't like my tie." - The Doctor

        Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

        Comment

        • DonLi

          #5
          Re: Table alignment problem

          OK. Please see below. Thanks.

          Steve Pugh <steve@pugh.net > wrote in message news:<n54270pgn 7f2pi28h6to3oiu pfdsjgvouh@4ax. com>...[color=blue]
          > donli@yahoo.com (DonLi) wrote:[color=green]
          > >Steve Pugh <steve@pugh.net > wrote in message news:<87hr601h6 foom0hkc61nr129 5ph15bhsv7@4ax. com>...[color=darkred]
          > >>
          > >> Have you removed the default margin on <body>?[/color]
          > >
          > >Currently, the BODY tag has only one attribute of bgcolor.[/color]
          >
          > But what about it's styles?
          > The only attributes of body that affect its margins are out-of-date,
          > non-standard, browser-specific hacks.[/color]
          Intended support is for IE6.x (the weird thing is,
          background="/imgfolder/image.gif", which I think is standard, is no
          longer supported by IE6).

          Current style sheet,

          [color=blue]
          >[color=green][color=darkred]
          > >>> Other than that, what's the URL?[/color]
          > >
          > >Sorry it's inside a firewall.[/color]
          >
          > Make a copy with sensitive info removed and stick it on some free web
          > space. Otherwise we can't help you.[/color]
          URL,

          [color=blue]
          >
          > Steve[/color]

          Comment

          • Steve Pugh

            #6
            Re: Table alignment problem

            donli@yahoo.com (DonLi) wrote:[color=blue]
            >Steve Pugh <steve@pugh.net > wrote in message news:<n54270pgn 7f2pi28h6to3oiu pfdsjgvouh@4ax. com>...[color=green]
            >> donli@yahoo.com (DonLi) wrote:[color=darkred]
            >> >Steve Pugh <steve@pugh.net > wrote in message news:<87hr601h6 foom0hkc61nr129 5ph15bhsv7@4ax. com>...
            >> >>
            >> >> Have you removed the default margin on <body>?
            >> >
            >> >Currently, the BODY tag has only one attribute of bgcolor.[/color]
            >>
            >> But what about it's styles?
            >> The only attributes of body that affect its margins are out-of-date,
            >> non-standard, browser-specific hacks.[/color]
            >
            >Intended support is for IE6.x[/color]

            The fact that this is an intranet on which all the users use IE6
            should have been stated up front. The name of this group contains www
            and thus the default context for all discussions is the world wide
            web.

            To remove the default margin around pages in IE specify
            body {margin: 0;} in your CSS. If you only want to remove the top
            margin then specify body {margin-top: 0;}.
            Note that if you were writing for the www rather than for an intranet
            then padding:0; would also be needed as some browsers have default
            padding whilst others have default margin.
            [color=blue]
            >(the weird thing is,
            >background="/imgfolder/image.gif", which I think is standard, is no
            >longer supported by IE6).[/color]

            As an attribute of <body> ? It's in the HTML 4.01 Transitional
            standard, and is supported by IE6, but as with all presentational
            matters CSS is more appropriate.

            If <body background="/imgfolder/image.gif"> is not working in IE6 then
            the first thing to check is that the referenced image is indeed in a
            folder called imgfolder that is itself in the root of the site.
            [color=blue][color=green][color=darkred]
            >> >>> Other than that, what's the URL?
            >> >
            >> >Sorry it's inside a firewall.[/color]
            >>
            >> Make a copy with sensitive info removed and stick it on some free web
            >> space. Otherwise we can't help you.[/color]
            >URL,
            >http://68.32.63.205/pub/tableProblem.htm[/color]

            7 minutes and no response, gave up waiting.

            Steve

            --
            "My theories appal you, my heresies outrage you,
            I never answer letters and you don't like my tie." - The Doctor

            Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

            Comment

            • DonLi

              #7
              Re: Table alignment problem

              Tried your recipe, but my "cooking" still does not "taste" good.
              Would you mind if I send it to your private email box? Thanks.

              Steve Pugh <steve@pugh.net > wrote in message news:<8h4370t7o o328uouv8rlmb5r aqmsmudmhh@4ax. com>...[color=blue]
              > donli@yahoo.com (DonLi) wrote:[color=green]
              > >Steve Pugh <steve@pugh.net > wrote in message news:<n54270pgn 7f2pi28h6to3oiu pfdsjgvouh@4ax. com>...[color=darkred]
              > >> donli@yahoo.com (DonLi) wrote:
              > >> >Steve Pugh <steve@pugh.net > wrote in message news:<87hr601h6 foom0hkc61nr129 5ph15bhsv7@4ax. com>...
              > >> >>
              > >> >> Have you removed the default margin on <body>?
              > >> >
              > >> >Currently, the BODY tag has only one attribute of bgcolor.
              > >>
              > >> But what about it's styles?
              > >> The only attributes of body that affect its margins are out-of-date,
              > >> non-standard, browser-specific hacks.[/color]
              > >
              > >Intended support is for IE6.x[/color]
              >
              > The fact that this is an intranet on which all the users use IE6
              > should have been stated up front. The name of this group contains www
              > and thus the default context for all discussions is the world wide
              > web.
              >
              > To remove the default margin around pages in IE specify
              > body {margin: 0;} in your CSS. If you only want to remove the top
              > margin then specify body {margin-top: 0;}.
              > Note that if you were writing for the www rather than for an intranet
              > then padding:0; would also be needed as some browsers have default
              > padding whilst others have default margin.
              >[color=green]
              > >(the weird thing is,
              > >background="/imgfolder/image.gif", which I think is standard, is no
              > >longer supported by IE6).[/color]
              >
              > As an attribute of <body> ? It's in the HTML 4.01 Transitional
              > standard, and is supported by IE6, but as with all presentational
              > matters CSS is more appropriate.
              >
              > If <body background="/imgfolder/image.gif"> is not working in IE6 then
              > the first thing to check is that the referenced image is indeed in a
              > folder called imgfolder that is itself in the root of the site.
              >[color=green][color=darkred]
              > >> >>> Other than that, what's the URL?
              > >> >
              > >> >Sorry it's inside a firewall.
              > >>
              > >> Make a copy with sensitive info removed and stick it on some free web
              > >> space. Otherwise we can't help you.[/color]
              > >URL,
              > >http://68.32.63.205/pub/tableProblem.htm[/color]
              >
              > 7 minutes and no response, gave up waiting.
              >
              > Steve[/color]

              Comment

              • DonLi

                #8
                Re: Table alignment problem

                Oh, and sorry not having stated for IE6 only upfront.

                Steve Pugh <steve@pugh.net > wrote in message news:<8h4370t7o o328uouv8rlmb5r aqmsmudmhh@4ax. com>...[color=blue]
                > donli@yahoo.com (DonLi) wrote:[color=green]
                > >Steve Pugh <steve@pugh.net > wrote in message news:<n54270pgn 7f2pi28h6to3oiu pfdsjgvouh@4ax. com>...[color=darkred]
                > >> donli@yahoo.com (DonLi) wrote:
                > >> >Steve Pugh <steve@pugh.net > wrote in message news:<87hr601h6 foom0hkc61nr129 5ph15bhsv7@4ax. com>...
                > >> >>
                > >> >> Have you removed the default margin on <body>?
                > >> >
                > >> >Currently, the BODY tag has only one attribute of bgcolor.
                > >>
                > >> But what about it's styles?
                > >> The only attributes of body that affect its margins are out-of-date,
                > >> non-standard, browser-specific hacks.[/color]
                > >
                > >Intended support is for IE6.x[/color]
                >
                > The fact that this is an intranet on which all the users use IE6
                > should have been stated up front. The name of this group contains www
                > and thus the default context for all discussions is the world wide
                > web.
                >
                > To remove the default margin around pages in IE specify
                > body {margin: 0;} in your CSS. If you only want to remove the top
                > margin then specify body {margin-top: 0;}.
                > Note that if you were writing for the www rather than for an intranet
                > then padding:0; would also be needed as some browsers have default
                > padding whilst others have default margin.
                >[color=green]
                > >(the weird thing is,
                > >background="/imgfolder/image.gif", which I think is standard, is no
                > >longer supported by IE6).[/color]
                >
                > As an attribute of <body> ? It's in the HTML 4.01 Transitional
                > standard, and is supported by IE6, but as with all presentational
                > matters CSS is more appropriate.
                >
                > If <body background="/imgfolder/image.gif"> is not working in IE6 then
                > the first thing to check is that the referenced image is indeed in a
                > folder called imgfolder that is itself in the root of the site.
                >[color=green][color=darkred]
                > >> >>> Other than that, what's the URL?
                > >> >
                > >> >Sorry it's inside a firewall.
                > >>
                > >> Make a copy with sensitive info removed and stick it on some free web
                > >> space. Otherwise we can't help you.[/color]
                > >URL,
                > >http://68.32.63.205/pub/tableProblem.htm[/color]
                >
                > 7 minutes and no response, gave up waiting.
                >
                > Steve[/color]

                Comment

                • DonLi

                  #9
                  Re: Table alignment problem

                  The site is up, please take a look when you have a chance,


                  Thanks.

                  donli@yahoo.com (DonLi) wrote in message news:<9a172893. 0404051744.29b2 ebb5@posting.go ogle.com>...[color=blue]
                  > Oh, and sorry not having stated for IE6 only upfront.
                  >
                  > Steve Pugh <steve@pugh.net > wrote in message news:<8h4370t7o o328uouv8rlmb5r aqmsmudmhh@4ax. com>...[color=green]
                  > > donli@yahoo.com (DonLi) wrote:[color=darkred]
                  > > >Intended support is for IE6.x[/color]
                  > >[color=darkred]
                  >>> > >URL,
                  > > >http://68.32.63.205/pub/tableProblem.htm[/color]
                  > >
                  > > 7 minutes and no response, gave up waiting.
                  > >
                  > > Steve[/color][/color]

                  Comment

                  Working...