In internet explorer 6+, I am trying to make a mark on the left border where an element appears in the text. This currently works by putting an image at the absolute position with an X of 5px and a Y which is the absolute position of the element, worked out by navigating up the offsetParents and margins of all the parents up to the root.
This works fine on screen, everything is in the right place.
However, when I go to print it I have to use a template with a header and footer. Internet explorer deals with putting the headers and footers on the document and I never seem to have access to the file it has generated and prints.
Is there some way I can ensure these lines stay in place?