DHTML Lab - DHTML Diner - Element Page Coordinates, Part 2 | 5
Determining Element Page Coordinates, Part 2
|
Let's try the same example, only this time our red-square-table has a BORDER value of 1.
Notice that, although we have specified a border of 1 (one) it looks like the actual border rendered is 2 (two) pixels wide.
Move the blue square.
|
|
Result
Our positioning is off by one pixel. Why? Is it because our BORDER attribute is set to 1?. |
Before we answer these questions, let's try an example with nested tables.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.Created: Oct 07, 2002
Revised: Oct 07, 2002
URL: https://www.webreference.com/dhtml/diner/realpos2/4.html