PDA

View Full Version : Html



TeQno
07-18-2003, 12:54 AM
I dont know if this is the right place to post this, but I'll give it a shot anyway,

I have this HTML code


<html>
<head>

<title>TEST</title>
</head>

<body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0">

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<img src="boven.gif">
</td>
</tr>
<tr>
<td>
<img src="onder.gif">
</td>
</tr>
</table>

</body>

</html>


It's supposed to leave no space/padding/border between the two gifs but it does so anyway, anyone any ideas on how to resolve this?
thanx!

Brian
07-18-2003, 02:16 AM
Your code was correct, it's just internet explorer is retarded and leaves a little space because of your newline after the <img> tag, just move the </td> up to the same line and it resolves this issue


<?xml version="1.0" encoding="iso-8859-1"?>
<!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" lang="en-US">
<head>
<title>TEST</title>
</head>

<body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0">

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<img src="boven.gif" border="0" /></td>
</tr>
<tr>
<td>
<img src="onder.gif" border="0" /></td>
</tr>
</table>

</body>

</html>

TeQno
07-18-2003, 02:27 AM
Haha was that all, thanks mate! I thought I was going nuts :P