Click to See Complete Forum and Search --> : Img and table space


cjane
12-13-2007, 05:36 PM
10111

10112

How do I eliminate the spaces between header1.gif and header2.gif? Are there any css and html tutorials that can assist me with this.

<table border="0" width="100%"><tr>
<td><img src="header1.gif"></td>
</tr><tr><td><img src="header2.gif"></td></tr></table>

img attached to message

dtm32236
12-13-2007, 07:38 PM
<table border="0" width="100%" style="border-collapse:collapse;"><tr>
<td><img src="header1.gif"></td>
</tr><tr><td><img src="header2.gif"></td></tr></table>

see if that will do it.

felgall
12-13-2007, 08:03 PM
No table required, just use:

<div><img src="header1.gif" style="display:block;"><br>
<img src="header2.gif" style="display:block;"></div>

dtm32236
12-13-2007, 08:19 PM
felgall is right... that is the 'better' way to do it.

cjane
12-14-2007, 12:43 AM
10116

Both solutions didn't work

cjane
12-14-2007, 12:17 PM
the td img {vertical-align: bottom;}
works perfect
http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla:en-GB:official&hs=bjO&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=img%2Bmysterious%2Bspace%2Bmozilla&spell=1


thanks for the inputs

dtm32236
12-14-2007, 12:30 PM
nice. glad it worked out.