View Full Version : getting those tables nice and tight
mcnasty
July 30th, 2003, 01:41 PM
ive got a table with four cells. ive put a link to an image in each cell. fine so far. ive set the border to "0", the cell spacing to "0" and cell padding to "0" but there is still a tiny gap inbetween pictures. how do i solve this?
DigitalPimp
July 30th, 2003, 01:52 PM
paste ur source. Also, check the images to make sure that the heights & widths add up.
mcnasty
July 30th, 2003, 02:13 PM
you mean paste the link of the image into a cell?
thats what i did.
this is it http://www31.brinkster.com/asshat/ack.html
have a look at the source and tell me what you think
DigitalPimp
July 30th, 2003, 02:21 PM
Well first off you were missing the cellpadding attribute. Second off, in your HTML you had set the td height for the first row to 104 but the Image was 100px tall.
Here is what the code should look like
<TABLE cellspacing="0" cellpadding="0" border="0" height="200">
<TR>
<TD height="100"><IMG src="http://www31.brinkster.com/asshat/sq1.jpg" width="100" height="100"></TD>
<TD height="100"><IMG src="http://www31.brinkster.com/asshat/sq1.jpg" width="100" height="100"></TD>
</TR>
<TR>
<TD height="7"><IMG src="http://www31.brinkster.com/asshat/sq1.jpg" width="100" height="100"></TD>
<TD height="7"><IMG src="http://www31.brinkster.com/asshat/sq1.jpg" width="100" height="100"></TD>
</TR>
</TABLE>
You still need to clean it up a bit ie (height="7") and stuff like but it will display correctly now.
mcnasty
July 30th, 2003, 02:33 PM
ok cheers.
this is what it looks like now http://www31.brinkster.com/asshat/ack.html
there is still awhite border though.
DigitalPimp
July 30th, 2003, 02:35 PM
umm because there is a white border on ur images...
mcnasty
July 30th, 2003, 02:38 PM
lol. i'll mess around with different pics , but the actual pics have a thin black border.
mcnasty
July 30th, 2003, 02:42 PM
k, i changed the image http://www31.brinkster.com/asshat/ack.html
DigitalPimp
July 30th, 2003, 02:45 PM
and the borders go bye-bye. :p:
mcnasty
July 30th, 2003, 02:52 PM
holla
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.