blob: 3d6cfb7daa1ccddb16cf27291372fca539f49703 [file] [log] [blame]
<style>
.a:first-letter { float: right; font-size: 2em; }
.b:first-letter { color: blue; }
</style>
<div id="target" style="font-family: ahem;" class="a">Lorem ipsum dolor sit amet</div>
<script>
var target = document.getElementById("target");
target.offsetTop;
target.className = "b";
</script>