blob: dac1d423aef4935d6c0ae2b08d31851dba80c0e9 [file] [log] [blame]
<style>
#target { font-family: ahem; font-size: 50px; background-color: green; height: 50px; width: 50px; }
#target:first-letter { color: red; }
</style>
<div id="target">Lorem</div>
<script>
var target = document.getElementById("target");
target.offsetTop;
var text = target.firstChild;
target.innerHTML = "ipsum";
target.removeChild(target.firstChild);
</script>