Spaces Between Images in Table

Discussion in 'HTML' started by Dave \IT\, Apr 22, 2004.

  1. Dave \IT\

    Dave \IT\ Guest

    Hey Group,

    I have an issue with trying to fit a table cell tight around an image. I
    want to do this, much like many others, so I can use the table to line up
    images and make a smooth look to the website. I can't, however, get it to
    work. I've got border-collapse in my .css file, but still no luck. I've
    got this working before, but can't figure it out now.

    The page I'm working on is pickeringheat.com, and the problem is occouring
    right under the 'Can you take the heat' banner...you'll see a grey bar.
    That should be flush with the black menu right under it...no grey should be
    showing.

    Thanks for any help you can provide.
     
    Dave \IT\, Apr 22, 2004
    #1
    1. Advertising

  2. Dave \IT\

    Els Guest

    Dave "IT" wrote:

    > Hey Group,
    >
    > I have an issue with trying to fit a table cell tight around an image. I
    > want to do this, much like many others, so I can use the table to line up
    > images and make a smooth look to the website. I can't, however, get it to
    > work. I've got border-collapse in my .css file, but still no luck. I've
    > got this working before, but can't figure it out now.
    >
    > The page I'm working on is pickeringheat.com, and the problem is occouring
    > right under the 'Can you take the heat' banner...you'll see a grey bar.
    > That should be flush with the black menu right under it...no grey should be
    > showing.


    Maybe this:
    td img {display:block;}
    or this:
    td img {vertical-align:bottom;}
    will help.

    --
    Els
    http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
     
    Els, Apr 22, 2004
    #2
    1. Advertising

  3. Dave \IT\

    Mitja Guest

    "Dave "IT"" <> wrote in message
    news:25Rhc.30692$...
    > ...
    > The page I'm working on is pickeringheat.com, and the problem is occouring
    > right under the 'Can you take the heat' banner...you'll see a grey bar.
    > That should be flush with the black menu right under it...no grey should

    be
    > showing.


    Your coding is... um... not all that pretty. Dump the iframe, use tables
    only where they are needed, don't use spacer gifs, etc, etc

    What is causing you the problems is the whitespace (newline and spaces)
    after the <img> tag. Image takes up the whole width, so the space goes in
    the next line, making for the grey space.
     
    Mitja, Apr 22, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack Crane
    Replies:
    6
    Views:
    517
    Jack Crane
    Oct 3, 2003
  2. jcnews at earthlink.net

    PROBLEM: Images have spaces between table cells

    jcnews at earthlink.net, Nov 25, 2004, in forum: HTML
    Replies:
    3
    Views:
    1,336
    Duende
    Nov 25, 2004
  3. John B. Matthews
    Replies:
    4
    Views:
    697
    John B. Matthews
    Sep 12, 2008
  4. Roedy Green
    Replies:
    3
    Views:
    658
  5. Tomasz Chmielewski

    [CSS] how can I show spaces as spaces?

    Tomasz Chmielewski, Sep 5, 2009, in forum: HTML
    Replies:
    21
    Views:
    1,683
    Jan C. Faerber
    Sep 10, 2009
Loading...

Share This Page