Ciao,
ho fatto questo piccolo script che dovrebbe risolvere il problema:
fammi sapere.

Saluti.





<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script>


function adatta(){
var j=document.getElementById("idbox"), h,o,s, min=10, max=72;
with(j.style) { h=parseInt(height), o=overflow, overflow="auto";
for(;min<max;min++){
fontSize=min+"px";
s=j.scrollHeight;
if(s>h) { min--; fontSize=min+"px"; break; }
} overflow=o;
}}



</script>
</head>
<body>

<button onclick='adatta()'>Adatta</button>

<div id='idbox' style='position:absolute;left:10px;top:100px;width :500px;height:620px;font:12px Arial;background-color:#f0f0f0;'>
Prova inserimento testo che si deve adattare al div senza fuoriuscire.

L'altezza del font è uguale per tutto il testo.

Saluti by Tonenge.
<div>

</body>
</html>