Web table on the top left corner

Remove the blank space from the top of your Web pages.

Have you ever tried to put a table just after the 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

Dig deeper on Domino Resources

0 comments

Oldest 

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:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close