<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body> <fieldset> <div style="white-space: pre"> <span>This text doesn't move around This text does</span> <span>This text doesn't move around This text does</span> <span>This text doesn't move around This text does</span> <span id="s">This text doesn't move around This text does</span> </div> </fieldset> <script> document.body.offsetTop; document.getElementById("s").innerHTML += "!"; </script> </body> </html>