K
killy971
I am having a problem with the fact that when I insert an image in a
table cell, it won't fill the cell completely when I declare the
document as strict html4. But when using the "loose" html4 doctype, it
works...
The code is the following :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0"
style="background-color: #000000;">
<tr>
<td bgcolor="#DD0000">
<img src="http://img384.imageshack.us/img384/3636/
testbc0.gif"/>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0"
style="background-color: #000000;">
<tr>
<td bgcolor="#DD0000">
<img src="http://img384.imageshack.us/img384/3636/
testbc0.gif"/>
</td>
</tr>
</table>
</body>
</html>
With the strict one, it seems like I can somehow get over the problem
by using css to modify the bottom margin of the image with a minus
value... solution that is really not good I think, especially because
the display is not the same on firefox and internet explorer,
depending on the value of this margin.
Does anyone know how to solve this problem in a simple way ?
table cell, it won't fill the cell completely when I declare the
document as strict html4. But when using the "loose" html4 doctype, it
works...
The code is the following :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0"
style="background-color: #000000;">
<tr>
<td bgcolor="#DD0000">
<img src="http://img384.imageshack.us/img384/3636/
testbc0.gif"/>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<title>test</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0"
style="background-color: #000000;">
<tr>
<td bgcolor="#DD0000">
<img src="http://img384.imageshack.us/img384/3636/
testbc0.gif"/>
</td>
</tr>
</table>
</body>
</html>
With the strict one, it seems like I can somehow get over the problem
by using css to modify the bottom margin of the image with a minus
value... solution that is really not good I think, especially because
the display is not the same on firefox and internet explorer,
depending on the value of this margin.
Does anyone know how to solve this problem in a simple way ?