Discussion:
space between slices
(too old to reply)
prabhu wali
2012-02-08 10:11:21 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="100%" border="0" align="center">
<tr>
<td><table width="1024" border="0" align="center">
<tr>
<td><img src="images/Untitled-1_01.gif" width="1024"
height="120" alt=""/></td>
</tr>
</table>
<table width="1024" border="0" align="center">
<tr>
<td><img src="images/Untitled-1_02.gif" width="1024"
height="47" alt=""/></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

from the above code i've been getting spaces between slices,any
solutions?
Duncan Kennedy
2012-02-08 10:42:01 UTC
Permalink
Post by prabhu wali
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="100%" border="0" align="center">
<tr>
<td><table width="1024" border="0" align="center">
<tr>
<td><img src="images/Untitled-1_01.gif" width="1024"
height="120" alt=""/></td>
</tr>
</table>
<table width="1024" border="0" align="center">
<tr>
<td><img src="images/Untitled-1_02.gif" width="1024"
height="47" alt=""/></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
from the above code i've been getting spaces between slices,any
solutions?
Can you run all your slices in one table? Something like this if my
cutting and pasting got it right:

<table width="100%" border="0" align="center">

<tr>
<td><table width="1024" border="0" align="center">
<tr>
<td><img src="images/Untitled-1_01.gif" width="1024"
height="120" alt=""/></td>
</tr>
<tr>
<td><img src="images/Untitled-1_02.gif" width="1024"
height="47" alt=""/></td>
</tr>
</table>

I suspect the problem may be the separate tables but others may know
better.

There are few people around here now since Adobe closed down their
support but some people who prefer usenet to web forums are still
around. Otherwise you could try the forum on the Adobe web site if you
still can't get it right.

dk
--
duncank
Helpful Harry
2012-02-08 20:35:26 UTC
Permalink
<snip HTML sample code>
Post by Duncan Kennedy
Post by prabhu wali
from the above code i've been getting spaces between slices,any
solutions?
Can you run all your slices in one table? Something like this if my
<snip HTML example code>
Post by Duncan Kennedy
I suspect the problem may be the separate tables but others may know
better.
There are few people around here now since Adobe closed down their
support but some people who prefer usenet to web forums are still
around. Otherwise you could try the forum on the Adobe web site if you
still can't get it right.
One table is probably best, but either way the gaps are likely caused by
the Table's Cellspacing and Cellpadding attributes not being given values.
(Assuming of course that the images themselves don't have background
coloured borders around them and that the Img's Height and Width values
are correct.)
e.g.
<table width="100%" border="0" cellspacing="15"
cellpadding="15" align="center">

Cellspacing is the amount of gap between the cells (but is independant of
the Border attribute).

Cellpadding is the amount of gap between the cell's edge and the content
(e.g. like the page margins in Microsoft Word).

If you don't specifically set these attributes to 0, then the web browser
will use the default non-zero values which cause a gap to appear.

See somewhere like http://www.pageresource.com/html/table1.htm for examples.

Helpful Harry :o)

Loading...