How can I get rid of spaces between table cells? I've tried setting cellspacing, cellpadding, and border to 0 but still get blank spaces between the cells. I am trying to put a continuous background in a table. Is this where layering would be a better way to do it, and if so, how do I do that? TIA
--Bill
------------------
Lake Superior Smokin' Brews
Make It Different: Brew Your Own! www.smokinbrews.com
Here's an example of the spaces I'm trying to get rid of. www.smokinbrews.com/lsbrew2.html
The graphic was originally one piece. I quartered it in PSP 6 (cut out a section and pasted it as a new image).
Thanks
--Bill
------------------
Lake Superior Smokin' Brews
Make It Different: Brew Your Own! www.smokinbrews.com
[This message has been edited by Sahti (edited July 03, 2000).]
I know it doesn't look to much differently but try it and see if it works. If it does, I'll explain why. Alsomake sure to add height and width tags to your images.
doh! I forgot to upload the image files. I changed the code and the images are lined up side by side, but between the rows there is still a gap. One other question that I think is sort of related (it has to do with table cells). Why is it that if I create an image that is say 100 x 100 pixels and put it into a 100 x 100 pixel table cell, the image seems to have about the last 5 pixels to the right cut off? The image I am working with on this page (www.smokinbrews.com/lsbrew2.html) seems to fit in properly, but I've tried to make some rounded rectangles to use for menu/border bars, and I have to make the table cells 5 to 10 pixels larger than the image I originally created to get it to fit. Thanks for your help.
--Bill
------------------
Lake Superior Smokin' Brews
Make It Different: Brew Your Own! www.smokinbrews.com
Ok now now put your row tags (TR) on the same line as the same cells it contains.
SO your code would look like:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
<table attibutes... >
<tr><td><img></td><td><img></td></tr>
<tr><td><img></td><td><img></td></tr>
</table>
[/code]
I also removed all that formatting garbage from your <TD> tags because frankly its not needed and just gets in the way.
The reason this works is the while HTML Agents (a.k.a Browsers) are supposed to ignore white space, they don't do it very well. They always accept the first space and newline/carriage return they see and render it. Technically browsers should only render what is within cells (TD) and use the rest of the information for formatting purposes. But they don't and each company is free to set their own rendering specifications.
Thanks. Now after I start indenting and separting my table coding so that it's easier to read I have to stop doing it and mush everything together!
--Bill
------------------
Lake Superior Smokin' Brews
Make It Different: Brew Your Own! www.smokinbrews.com
Bookmarks