Posted By

tylerhall on 11/30/-1


Tagged

css ie hires display dell dpi


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jonhenshaw


Fix IE Hi-Res Bug


 / Published in: JavaScript
 

  1. function fnScaleFactorX() {
  2. nScaleFactor = screen.deviceXDPI / screen.logicalXDPI;
  3. return nScaleFactor;
  4. }
  5. if (fnScaleFactorX() > 1) {
  6. document.getElementById("block_1").style.marginBottom = "-26000px";
  7. }

Report this snippet  

You need to login to post a comment.