Create an HTML Invoice: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:


</pre>
</pre>
Notice the use of both relative and absolute positioning.  Absolute positioning prints at exactly those coordinates in relation to the top left corner of the browser.  The problem with this is that it can be unreliable by itself and can vary depending on the browser being used.  And if you have multiple pages, it gets worse.
Relative positioning means that the coordinates are relative to something else.  In the above case, the coordinates of id=”rel” are relative to the form and the coordinates of id=”abs” are relative to “rel”.
40

edits