Mellemrum mellem tabeller
Davser,Når jeg skal lave mellemrum mellem 2 tabeller som skal være mindre end < br /> så sætter jeg ofte en 3. tabel med en variable højde ind i mellem:
<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FF0000"> </td>
</tr>
</table>
<table width="10" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFF00"> </td>
</tr>
</table>
<table width="10" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#00CC00"> </td>
</tr>
</table>
</body>
</html>
Men det virker en smule klodset... findes der en pænere måde?
Mv.
Allan
