Forum Moderators: open
This only happens:
* in xhtml (it works OK if I remove the first line)
* in firefox (it OK in ie6)
I would appreciate ideas for removing this gap which works in all browsers and allows me to continue using xhtml.
I have tried:
border-width:0px;
margin:0px;
padding:0px;
on both table and img without effect.
here is the page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<table width="100%" border="1">
<tr>
<td>a</td>
</tr>
</table>
<img src="banner11.gif" alt="banner" />
<table width="100%" border="1">
<tr>
<td>b</td>
</tr>
</table>
</body>
</html>
[edited by: tedster at 6:36 pm (utc) on April 29, 2007]
[edit reason] fix the formatting [/edit]
From what you say, to make the page properly xhtml compliant, then I should put the img inside another tag like <p> or would <pre> be better so that that does not generate a border?
I guess I need to search for some tutorials so that I can understand the standards better.
Thanks,
Martin