Tip

Web table on the top left corner

Have you ever tried to put a table just after the <body> tag? (see code1) (That's the same for Domino or pure HTML). Viewing the page you will see a blank line before the table. That's annoying, especially if the table contains a navigation menu.

You can use pass-through html in pages, but it will give the same result. You can use "treat document/page content as HTML" property in form/pages, but then you will face others issues.

The solution I found snooping around is a very simple one:
using particulars BODY attributes.
leftmargin="0"
topmargin="0"
marginwidth="0"
marginheight="0"
I put the new attributes in the Domino "HTML Body attributes" section and now my table is positioned in the left and top corner.

See code2 .


Code 1:
<body >
<table border=1 >
<tr>
<td>r1c1</td><td>r1c2</td>
<tr>
<td>r2c1</td><td>r2c2</td>
</table>


Code2:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border=1 >
<tr>
<td>r1c1</td><td>r1c2</td>
<tr>
<td>r2c1</td><td>r2c2</td>
</table>

This was first published in September 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.