Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Spaces Between Images in Table

Reply
Thread Tools

Spaces Between Images in Table

 
 
Dave \IT\
Guest
Posts: n/a
 
      04-22-2004
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.


 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      04-22-2004
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 -

 
Reply With Quote
 
 
 
 
Mitja
Guest
Posts: n/a
 
      04-22-2004
"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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CSS] how can I show spaces as spaces? Tomasz Chmielewski HTML 21 09-10-2009 06:43 PM
Re: How to trim a String trailing spaces, but not leading spaces? Roedy Green Java 3 09-14-2008 02:10 AM
Re: How to trim a String trailing spaces, but not leading spaces? John B. Matthews Java 4 09-12-2008 05:28 AM
PROBLEM: Images have spaces between table cells jcnews at earthlink.net HTML 3 11-25-2004 05:59 AM
How to eliminate spaces between images? Jack Crane HTML 6 10-03-2003 06:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57