<ole>
... et eller andet meget obskurt workaround - viperine, du kalder jo på mig! ;D
Et hurtigt bud kunne være noget i stil med dette, selvom der nok skal pilles lidt med
line-height:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
#justifCont {
width: 80px;
font: bold 0 arial, tahoma, sans-serif;
margin: 60px;
}
#justifCont .hidden {
display: none;
}
</style>
<script type="text/javascript">
window.onload = function() {
var oCont = document.getElementById("justifCont"),
aTxt = oCont.getElementsByTagName("span")[0].firstChild.nodeValue.split(" "),
nSize = 0, nWidth = oCont.offsetWidth, o = null;
for (var i=0,j=aTxt.length; i<j; i++) {
o = document.createElement("span");
o.appendChild(document.createTextNode(aTxt[i]));
oCont.appendChild(o);
nSize = 0;
while (o.offsetWidth<=nWidth) o.style.fontSize = (++nSize)+"px";
if (o.offsetWidth>nWidth) o.style.fontSize = (nSize-1)+"px";
o.style.display = "block";
}
}
</script>
</head>
<body>
<div id="justifCont">
<span class="hidden">Text size due to width</span>
</div>
</body>
</html>
/mvh
</bole>