help please!

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

    help please!

    hello,
    can somebody check my old post please and tell me if i'm right so i can
    change width and height of the table.
    the subject was SUBJECT:style=" TABLE-LAYOUT:fixed;" ???
    on 05.02.2004.
    thank you.


  • Evertjan.

    #2
    Re: help please!

    riki wrote on 09 feb 2004 in comp.infosystem s.www.authoring.stylesheets:[color=blue]
    > can somebody check my old post please and tell me if i'm right so i can
    > change width and height of the table.
    > the subject was SUBJECT:style=" TABLE-LAYOUT:fixed;" ???
    > on 05.02.2004.[/color]

    You should add a link, so that people can reread it, Riki:

    <http://groups.google.c om/groups?selm=bvt q8e%24buq%241%4 0ls219.htnet.hr >

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Andrew Thompson

      #3
      Re: help please!

      riki wrote:[color=blue]
      > hello,
      > can somebody check my old post please and tell me if i'm right so i
      > can change width and height of the table.
      > the subject was SUBJECT:style=" TABLE-LAYOUT:fixed;" ???
      > on 05.02.2004.[/color]

      Wot? You mean this one?


      [ I do not understand your question ]

      --
      Andrew Thompson
      * http://www.PhySci.org/ Open-source software suite
      * http://www.PhySci.org/codes/ Web & IT Help
      * http://www.1point1C.org/ Science & Technology


      Comment

      • riki

        #4
        Re: help please!

        sorry, didn't know about the link...
        i was wondering if the width and height of the table increases when i put
        cellspacing=x.. .
        i.e. first i fix height=100 and then cellspacing=2.. .
        what's my table height in the end if i have 5 rows???
        is it 20+20+20+20+20= 100px
        or is it 2+20+2+20+2+20+ 2+20+2+20+2=112 px


        Comment

        • Steve Pugh

          #5
          Re: help please!

          "riki" <riki_fox@hotma il.com> wrote:
          [color=blue]
          >sorry, didn't know about the link...
          >i was wondering if the width and height of the table increases when i put
          >cellspacing=x. ..
          >i.e. first i fix height=100 and then cellspacing=2.. .
          >what's my table height in the end if i have 5 rows???
          >is it 20+20+20+20+20= 100px
          >or is it 2+20+2+20+2+20+ 2+20+2+20+2=112 px[/color]

          Neither. It's
          2 + R1 + 2 + R2 + 2 + R3 + 2 + R4 + 2 + R5 + 2 = 100

          Where R1 - R6 may or may not be the same depending on the content of
          those cells. (Always assuming that the contents fit within the
          specified height.)

          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

          • riki

            #6
            Re: help please!


            "Steve Pugh" <steve@pugh.net > wrote in message
            news:0tqe20d9ds hiis6srqmn557kf sp836k26k@4ax.c om...[color=blue]
            > "riki" <riki_fox@hotma il.com> wrote:
            >[color=green]
            > >sorry, didn't know about the link...
            > >i was wondering if the width and height of the table increases when i put
            > >cellspacing=x. ..
            > >i.e. first i fix height=100 and then cellspacing=2.. .
            > >what's my table height in the end if i have 5 rows???
            > >is it 20+20+20+20+20= 100px
            > >or is it 2+20+2+20+2+20+ 2+20+2+20+2=112 px[/color]
            >
            > Neither. It's
            > 2 + R1 + 2 + R2 + 2 + R3 + 2 + R4 + 2 + R5 + 2 = 100
            >
            > Where R1 - R6 may or may not be the same depending on the content of
            > those cells. (Always assuming that the contents fit within the
            > specified height.)
            >
            > 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/>[/color]


            Comment

            • riki

              #7
              Re: help please!

              but i've tried increasing cellspacing of one table while other table
              remained as it were...then i noticed that first table increased height for
              this cellspacing, even height of both tables were fixed to same value...
              try fixing width or height of two tables, and then to first one put
              cellspacing=2 and to other one cellspacing=10. .. you'll see that height and
              width wan't be the same even dimensions are fixed to same value...


              Comment

              • riki

                #8
                Re: help please!

                copy paste this source...you could see that 2'nd table has greater height
                than 1'st and both have height="120"...
                -------------------------------------------------------------------

                <table width="300" height="120" cellspacing="2" bgcolor="gray">
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                </table>

                <table width="300" height="120" cellspacing="15 " bgcolor="gray">
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                <tr>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                <td width="100" height="40" bgcolor="#c0c0c 0">x</td>
                </tr>
                </table>



                Comment

                • Steve Pugh

                  #9
                  Re: help please!

                  "riki" <riki_fox@hotma il.com> wrote:
                  [color=blue]
                  >copy paste this source...you could see that 2'nd table has greater height
                  >than 1'st and both have height="120"...[/color]

                  Of course it does.

                  If (Sum of all cellspacing) + (sum of all cell heights) <> table
                  height, then one of the values has to be ignored. The table height is
                  most likely to be ignored.
                  [color=blue]
                  ><table width="300" height="120" cellspacing="2" bgcolor="gray">
                  > <tr>
                  > <td width="100" height="40" bgcolor="#c0c0c 0">x</td>[/color]

                  6 x 2 + 5 x 40 = 212, which is not 120.
                  [color=blue]
                  ><table width="300" height="120" cellspacing="15 " bgcolor="gray">
                  > <tr>
                  > <td width="100" height="40" bgcolor="#c0c0c 0">x</td>[/color]

                  6 x 15 + 5 x 40 = 290, which is also not 120.

                  Neither of the table is being displayed at 120px high.

                  Try it again with no heights on the cells. The first table will now be
                  120px tall. The second will be taller as the content of the table
                  cells needs about 22px to be displayed, hence
                  6 x 15 + 5 x 22 = 200px.

                  But what has this got to do with CSS? All your styling here is being
                  done via HTML.

                  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

                  • Steve Pugh

                    #10
                    Re: help please!

                    "riki" <riki_fox@hotma il.com> wrote:
                    [color=blue]
                    >but[/color]

                    What are you replying to?
                    [color=blue]
                    >i've tried increasing cellspacing of one table while other table
                    >remained as it were...then i noticed that first table increased height for
                    >this cellspacing, even height of both tables were fixed to same value...
                    >try fixing width or height of two tables, and then to first one put
                    >cellspacing= 2 and to other one cellspacing=10. .. you'll see that height and
                    >width wan't be the same even dimensions are fixed to same value...[/color]

                    The height of the table can be ignored if the content needs more
                    height.

                    "CSS2 does not specify rendering when the specified table height
                    differs from the content height, in particular whether content height
                    should override specified height;"



                    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

                    • Steve Pugh

                      #11
                      Re: help please!

                      Steve Pugh <steve@pugh.net > wrote:[color=blue]
                      >"riki" <riki_fox@hotma il.com> wrote:
                      >[color=green]
                      >><table width="300" height="120" cellspacing="2" bgcolor="gray">
                      >>[/color]
                      >But what has this got to do with CSS? All your styling here is being
                      >done via HTML.[/color]

                      And non-standard HTML at that. There is no height attribute for the
                      table elemnt in standard HTML.

                      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

                      • riki

                        #12
                        Re: help please!

                        yes i know that...that was just an example...all i want to know was this: if
                        i use style="TABLE-LAYOUT:fixed;" how should i fix table dimensions...
                        should i calculate TD's+cellspacin g between them or just sum of all TD's???


                        Comment

                        • Steve Pugh

                          #13
                          Re: help please!

                          "riki" <riki_fox@hotma il.com> wrote:
                          [color=blue]
                          >yes i know that...that was just an example...[/color]

                          Try to post useful examples in future.
                          [color=blue]
                          >all i want to know was this: if
                          >i use style="TABLE-LAYOUT:fixed;" how should i fix table dimensions...[/color]

                          table-layout: fixed; only fixes the widths of columns, it does nothing
                          at all about the heights of rows.
                          [color=blue]
                          >should i calculate TD's+cellspacin g between them or just sum of all TD's???[/color]

                          TDs + cellspacing (or border-spacing in CSS terms)

                          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

                          • riki

                            #14
                            Re: help please!

                            thank you Steve, this is what i want to know...


                            Comment

                            Working...