SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2003
    Location
    us
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question table cells stretching???

    I set absolute widths and heights to the cells (matching the sizes of the images exactly) and they're STILL stretching, revealing the background color. ???????

    here's the page http://www15.brinkster.com/threes/shamoo/test.html

    thanks in advance for ANY ideas!

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The table widths are still 100% so far as I can tell. That's probably your problem...

  3. #3
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is the layout of your HTML rather than anything that it's doing. Your code looks neat, but because your closing table cell tags are on an indented line, the browser is interpretting it as though you want a space there. Consequently, the cell contains your graphic + a space.

    I've changed the layout of your code to show you what I mean. It's not perfect, but it does the job. I've also taken out the hard-coded cell sizings too to show that they're not really necessary.

    See what I mean.


    Andy
    From the English nation to a US location.

  4. #4
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops. I was looking at a design thing then...

  5. #5
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't be too hard on yourself. I went through all that stuff first and it was only when I'd eliminated all that and still hadn't found the answer that I remembered that I'd had the same problem myself some time ago
    From the English nation to a US location.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •