Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Background image in <td>


swa66 - 3:10 pm on Dec 15, 2008 (gmt 0)


@Mini

I don't think your problem comes from the sample you posted.

E.g.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>untitled</title>
<style type="text/css">
.inn_99 {
background-image: url("2.jpg");
height:41px;
}
</style>
</head>
<body>
<table>
<tbody>
<tr>
<td class="inn_99" colspan="4">text</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</tbody>
</table>
</body>
</html>

Work fine in my tests.
The strict doctype disallows height, that's why I moved it to the CSS)

If you can expand on it till it does show the problem you have, you'll likely have found the problem. Anyway if you post minimal code still exhibiting the problem we might find it.


Thread source:: http://www.webmasterworld.com/css/3807762.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com