Currently, I am working on a project that necessitates a 20mm white area surrounding a print page, with a 10mm border inside of that. Despite setting this up using <div>
s and achieving the desired appearance on the HTML page, the issue arises when attempting to print.
Upon printing, an additional 4-5mm margin, which varies depending on the printer used, is added to the left and top sides. This results in content being shifted towards the right and partially spilling onto a second page. It seems like space might be taken from the right side while the excess bottom portion ends up on another sheet.
My goal is to accurately determine the specific millimeters of extra space being added on all sides of the page and deduct that from my original 20mm requirement. Since the printers employed by end-users are not standardized, I cannot anticipate consistent margins similar to mine.
Unfortunately, implementing the "shrink to fit" feature in IE is not an option due to the need for precise measurements and positioning on the page. Additionally, as this functionality is unsupported in IE6 – a possible browser choice - adhering to the client's insistence on using IE is non-negotiable despite the challenges it presents.