Loading ...
Sorry, an error occurred while loading the content.

[NH] Re: Tables & Images

Expand Messages
  • Mark Pulver
    ... Sometimes, I really hate the hacks you have to do in HTML... This is pretty close...
    Message 1 of 11 , Nov 12, 1999
    • 0 Attachment
      Jody (03:16 PM 11/12/1999) wrote:

      >Does anybody know how to wrap an image in a table without getting
      >the 2-3 pixes at the bottom of the image instad of wrapping it
      >all right up to the image side like to top and two sides?

      Sometimes, I really hate the hacks you have to do in HTML...

      This is pretty close...

      <TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 VALIGN=CENTER>
      <TR>
      <TD>
      <IMG ALIGN=LEFT VSPACE=0 HSPACE=0 SRC="foo.gif">
      </TD>
      </TR>
      </TABLE>


      Mark

      ________________________________________________________________
      Stuff: http://www.midiwall.com
    • Jaguwar
      I had to think about this for a bit to see what you mean, and frankly I m not sure I have it right. If you mean get rid of the space underneath the image, try
      Message 2 of 11 , Nov 12, 1999
      • 0 Attachment
        I had to think about this for a bit to see what you mean, and frankly I'm
        not sure I have it right. If you mean get rid of the space underneath the
        image, try plopping your closing cell tag immediately after the image, such
        as

        <table border="1">
        <tr>
        <td><img src="imagename.jpg" border="0" alt=""></td>
        </tr>
        </table>

        Hope this helps! :-)

        Jaguwar
      • Jody
        Hi Mark, Gee, we meet up again Mark! Thanks Brent but that was a no go with what I needed to do. ... You and I both! Thanks for the fix. Guess you can image
        Message 3 of 11 , Nov 12, 1999
        • 0 Attachment
          Hi Mark,

          Gee, we meet up again Mark! Thanks Brent but that was a no go
          with what I needed to do.

          > Sometimes, I really hate the hacks you have to do in HTML...

          You and I both! Thanks for the fix. Guess you can image where
          I am taking this next, might even do a triple! <g>

          Best viewed in IE:

          <TABLE BORDER=5 CELLPADDING=1 CELLSPACING=1 BGCOLOR=#000000 BORDERCOLORDARK=#FFCC00 BORDERCOLORLIGHT=#FF9933>
          <TR>
          <TD>
          <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9933>
          <TR>
          <TD>
          <IMG SRC="file:///e|/album/samples/switzerland.jpg" WIDTH=640 HEIGHT=381 ALIGN=LEFT VSPACE=0 HSPACE=0 ALT="Switzerland">
          </TD>
          </TR>
          </TABLE>
          </TD>
          </TR>
          </TABLE><P>

          The two most common elements in the
          universe are hydrogen and stupidity.

          Signed,
          I. Claim Ignorance

          Blessed are they who can laugh at themselves
          for they shall never cease to be amused.

          mailto:CF@...?subject=subscribe
        • Jody
          Hi Jaguwar, ... Thanks - that is what I use to do, but it does work well or I had problems with it when do hacks with the rest of the code like I just sent.
          Message 4 of 11 , Nov 12, 1999
          • 0 Attachment
            Hi Jaguwar,

            > <td><img src="imagename.jpg" border="0" alt=""></td>

            Thanks - that is what I use to do, but it does work well
            or I had problems with it when do hacks with the rest of
            the code like I just sent.

            Happy Album Mak'n!
            -jody

            http://www.sureword.com/album

            The Album Express List...
            mailto:Album-Express-Subscribe@...
            mailto:Album-Express-UnSubscribe@...

            http://www.fookes.com/album
          • Mark Pulver
            ... heh-heh... You can t get rid of me as easy as moving forums! ... What the heck are you trying to do? :) Oh man!!! You re a nut case! Here s 4... :0
            Message 5 of 11 , Nov 12, 1999
            • 0 Attachment
              Jody (04:50 PM 11/12/1999) wrote:

              >Gee, we meet up again Mark!

              heh-heh... You can't get rid of me as easy as moving forums!


              >> Sometimes, I really hate the hacks you have to do in HTML...
              >
              >You and I both! Thanks for the fix. Guess you can image where
              >I am taking this next, might even do a triple! <g>

              What the heck are you trying to do? :)

              Oh man!!! You're a nut case!

              Here's 4... :0

              <TABLE BORDER=5 CELLPADDING=1 CELLSPACING=1 BGCOLOR=#000000
              BORDERCOLORDARK=#FFCC00 BORDERCOLORLIGHT=#FF9933>
              <TR><TD>
              <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9933>
              <TR><TD>
              <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9900>
              <TR><TD>
              <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9933>
              <TR><TD>
              <IMG SRC="foo.gif" ALIGN=LEFT VSPACE=0 HSPACE=0>
              </TABLE>
              </TABLE>
              </TABLE>
              </TABLE>
              <P>


              btw, when coding "HTML for speed" (I wrote an HTML server for an embedded
              piece of hardware) it's a neat trick to be able to drop the closing tags
              </TR> and </TD>. It saves a good amount of time/bandwidth when you really
              need to. :)

              IE and NS are both okay with this. In fact, IE will let you drop /TABLE,
              /BODY and /HTML as well.

              And... if you're pushing fonts within table data elements, you can drop
              *all* of the closing tags like /FONT, /B, /U, etc...

              Have fun!

              Mark
            • Jody
              Hi Mark ... Thanks!-) OK, you can see the results now of Album Express with some minor editing, but not much: http://www.sureword.com/album/
              Message 6 of 11 , Nov 13, 1999
              • 0 Attachment
                Hi Mark

                >> I am taking this next, might even do a triple! <g>
                >
                > What the heck are you trying to do? :)
                >
                > Oh man!!! You're a nut case!

                Thanks!-) OK, you can see the results now of Album Express with
                some minor editing, but not much:

                http://www.sureword.com/album/
                http://www.sureword.com/album/albums/index.htm


                >IE and NS are both okay with this. In fact, IE will let you drop /TABLE,
                >/BODY and /HTML as well.

                >And... if you're pushing fonts within table data elements, you can drop
                >*all* of the closing tags like /FONT, /B, /U, etc...

                Thanks! That's some good to know stuff after digging fence posts
                holes for a number of hours. ;)

                Mail is really lagging. ;(

                Nite...

                Happy Album Mak'n!
                -jody

                http://www.sureword.com/album

                The Album Express List...
                mailto:Album-Express-Subscribe@...
                mailto:Album-Express-UnSubscribe@...

                http://www.fookes.com/album
              • Michael Gerholdt
                Jody et al: Suggestions have been appropriate but not complete.
                Message 7 of 11 , Nov 13, 1999
                • 0 Attachment
                  Jody et al:

                  Suggestions have been appropriate but not complete.

                  <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
                  <TR><TD><IMG BORDER="0" HSPACE="0" VSPACE="0"--OTHER
                  INFO--></TD></TR><TR><TD><IMG BORDER="0"

                  What is salient in the above:

                  1) cellpadding and cellspacing and border set to 0 in table
                  2) border set to 0 in image
                  3) hspace and vspace set to 0 in image
                  4) no hard returns between <tr> and <td> or <td> and <img ....> or the
                  latter and </td> or between </td> and </tr>

                  The last is due to buglet stuff in Netscape in which hard return is
                  incorrectly interpreted as white space; I don't know if you experiment with
                  multiple browsers but you'll see that IE doesn't do the same thing.

                  If you want a border in the table set it as you wish and the rest should
                  still stand you in good stead.

                  If equal spacing around the image instead of none anywhere, see about using
                  align="center" and valign="middle" in the <td> tag

                  hope this is of help

                  Thanks,
                  --Michael Gerholdt
                • Jody
                  Hi Michael, ... Yes, I knew about that, but only wrap when I need to, because I cannot stand having to wrap my tables and fonts. I find that the only time I
                  Message 8 of 11 , Nov 13, 1999
                  • 0 Attachment
                    Hi Michael,

                    >What is salient in the above:
                    >
                    >1) cellpadding and cellspacing and border set to 0 in table
                    >2) border set to 0 in image
                    >3) hspace and vspace set to 0 in image
                    >4) no hard returns between <tr> and <td> or <td> and <img ....> or the
                    >latter and </td> or between </td> and </tr>

                    Yes, I knew about that, but only wrap when I need to, because I
                    cannot stand having to wrap my tables and fonts. I find that the
                    only time I need to wrap it for my simple code is when the is a
                    link in between whatever I'm doing.

                    I also found that Netscape seems to need all its attributes even
                    if setting to "0" like you showed in some cases and I found out
                    from this thread that IE needs them for certain things I try to
                    do. I use to add them all by default just because I saw others
                    do it, but in a lot of case they aren't needed. I am going back
                    to putting them all in and set to "0" unless I want to use them
                    of course.

                    Thanks for the info Michael and others.

                    I have one last problem that I can see:

                    http://www.sureword.com/album/albums/index.htm

                    I cannot get the bottom horizontal scrollbar to work in NS. If
                    you look at it in IE that is the way I want it with all the
                    thumbnails on one line with no wrap unless it reaches 1024 pixels
                    which is what I have the width set to. Without it NS only showed
                    2.5 thumbnails. ;( I set it to SCROLLING=yes to force it, but I
                    only get and inactivated scrollbar which makes sense otherwise NS
                    would have built the scrollbar.

                    So, anybody got a fix for me?

                    http://www.sureword.com/album/albums/index.htm

                    Happy HTML'n!
                    Jody

                    http://www.sureword.com/notetab

                    The NoteTab and Html List...
                    mailto:Ntb-html-Subscribe@...
                    mailto:Ntb-html-UnSubscribe@...
                  • Michael Gerholdt
                    Maybe it s this: you are limiting the width of your table here to screen size. IE is disobeying you, but NN is being obedient! So it is IE
                    Message 9 of 11 , Nov 13, 1999
                    • 0 Attachment
                      Maybe it's this:

                      <TABLE WIDTH="100%">

                      you are limiting the width of your table here to screen size. IE is
                      disobeying you, but NN is being obedient! So it is IE you should be unhappy
                      with!

                      let me know if this guess is correct . . .

                      Thanks,
                      --Michael Gerholdt
                      ----- Original Message -----
                      From: Jody <KJB1611@...>
                      To: <ntb-html@egroups.com>
                      Sent: Saturday, November 13, 1999 8:02 PM
                      Subject: [NH] Re: Tables & Images


                      > Hi Michael,
                      >
                      > >What is salient in the above:
                      > >
                      > >1) cellpadding and cellspacing and border set to 0 in table
                      > >2) border set to 0 in image
                      > >3) hspace and vspace set to 0 in image
                      > >4) no hard returns between <tr> and <td> or <td> and <img ....> or the
                      > >latter and </td> or between </td> and </tr>
                      >
                      > Yes, I knew about that, but only wrap when I need to, because I
                      > cannot stand having to wrap my tables and fonts. I find that the
                      > only time I need to wrap it for my simple code is when the is a
                      > link in between whatever I'm doing.
                      >
                      > I also found that Netscape seems to need all its attributes even
                      > if setting to "0" like you showed in some cases and I found out
                      > from this thread that IE needs them for certain things I try to
                      > do. I use to add them all by default just because I saw others
                      > do it, but in a lot of case they aren't needed. I am going back
                      > to putting them all in and set to "0" unless I want to use them
                      > of course.
                      >
                      > Thanks for the info Michael and others.
                      >
                      > I have one last problem that I can see:
                      >
                      > http://www.sureword.com/album/albums/index.htm
                      >
                      > I cannot get the bottom horizontal scrollbar to work in NS. If
                      > you look at it in IE that is the way I want it with all the
                      > thumbnails on one line with no wrap unless it reaches 1024 pixels
                      > which is what I have the width set to. Without it NS only showed
                      > 2.5 thumbnails. ;( I set it to SCROLLING=yes to force it, but I
                      > only get and inactivated scrollbar which makes sense otherwise NS
                      > would have built the scrollbar.
                      >
                      > So, anybody got a fix for me?
                      >
                      > http://www.sureword.com/album/albums/index.htm
                      >
                      > Happy HTML'n!
                      > Jody
                      >
                      > http://www.sureword.com/notetab
                      >
                      > The NoteTab and Html List...
                      > mailto:Ntb-html-Subscribe@...
                      > mailto:Ntb-html-UnSubscribe@...
                      >
                      >
                      >
                      > ------------------------------------------------------------------------
                      > In the market for computer hardware or software? Compare prices on
                      > more that 100,000 products at CNET.com. Get all the latest news,
                      > reviews and prices! http://clickhere.egroups.com/click/1611
                      >
                      >
                      >
                      >
                      >
                      > -- Create a poll/survey for your group!
                      > -- http://www.egroups.com/vote?listname=ntb-html&m=1
                      >
                      >
                    • Jody
                      Hi Michael, ... OH, I did change it to that - forgot about it till you reminded me. ... OK, I understand that since I have 1500 pixels plus a few with 10
                      Message 10 of 11 , Nov 13, 1999
                      • 0 Attachment
                        Hi Michael,

                        > <TABLE WIDTH="100%">

                        OH, I did change it to that - forgot about it till you reminded me.

                        > you are limiting the width of your table here to screen size.
                        > IE is disobeying you, but NN is being obedient! So it is IE you
                        > should be unhappy with!

                        OK, I understand that since I have 1500 pixels plus a few with 10
                        thumbnails at WIDTH=150. Still, I would think I should have got
                        a scrollbar and then it wrap at 1024. It is wrapped in a table -
                        uh - why -uh - I don't know - haha. OK I was using the table
                        before to limit the width to 150*4+15 so the t-nails would wrap
                        at that point.

                        I am going to try taking the table out and use a couple of
                        &;bns$%&* haha spaces in between the. I suspect the table is
                        hosing it. ARGH!!!

                        Thanks for your trying to help; works fine without the table.

                        Looks like eGroups is picking up its speed again - it has been
                        really lagged and so has att. Perhaps there are some major
                        backbones down in a fiber cut or...

                        Happy HTML'n!
                        Jody

                        http://www.sureword.com/notetab

                        The NoteTab and Html List...
                        mailto:Ntb-html-Subscribe@...
                        mailto:Ntb-html-UnSubscribe@...
                      • Jody
                        Hi All, Here is the relevant part of the post from Mark:
                        Message 11 of 11 , Feb 18, 2000
                        • 0 Attachment
                          Hi All,

                          Here is the relevant part of the post from Mark:

                          <TABLE BORDER=5 CELLPADDING=1 CELLSPACING=1 BGCOLOR=#000000
                          BORDERCOLORDARK=#FFCC00 BORDERCOLORLIGHT=#FF9933>
                          <TR><TD>
                          <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9933>
                          <TR><TD>
                          <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9900>
                          <TR><TD>
                          <TABLE BORDER=1 BGCOLOR=#000000 BORDERCOLOR=#FF9933>
                          <TR><TD>
                          <IMG SRC="foo.gif" ALIGN=LEFT VSPACE=0 HSPACE=0>
                          </TABLE>
                          </TABLE>
                          </TABLE>
                          </TABLE>
                          <P>

                          btw, when coding "HTML for speed" (I wrote an HTML server for an embedded
                          piece of hardware) it's a neat trick to be able to drop the closing tags
                          </TR> and </TD>. It saves a good amount of time/bandwidth when you really
                          need to. :)

                          IE and NS are both okay with this. In fact, IE will let you drop /TABLE,
                          /BODY and /HTML as well.

                          And... if you're pushing fonts within table data elements, you can drop
                          *all* of the closing tags like /FONT, /B, /U, etc...

                          Have fun!

                          Mark

                          Happy HTML'n!
                          Jody

                          http://www.sureword.com/notetab

                          The NoteTab and Html List...
                          mailto:Ntb-html-Subscribe@...
                          mailto:Ntb-html-UnSubscribe@...
                        Your message has been successfully submitted and would be delivered to recipients shortly.