Hi

I have only just started using tabels and I copied this table from a book but when I write in the main window the writing starts half way down the window not in the top left corner. Can anybody tell me why please here is the code

[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Tables</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="1">
<tr>
<td colspan="2"> Heading </td>
</tr>
<tr>
<td width="54" height="105"> Nav bar here </td>
<td width="317"> Main window </td>
</tr>
</table>
</body>
</html>]

Thankyou

HLA91

Table cells are vertically aligned to be in the middle by default. You need to use valign="top" in your table cells to push the content to the top.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.