Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<style>
#content{
height: 700px;
}
</style>
</head>
<body>
<div id="content">Colocar aquí el contenido de la nueva etiqueta Div</div>
<script>
alert(document.getElementById('content').style.height);//retorna nada
alert(document.getElementById('content').offsetHeight);//retorna 700
document.getElementById('content').style.height=document.getElementById('content').offsetHeight-300+'px';
alert(document.getElementById('content').style.height);//retorna 400px
alert(document.getElementById('content').offsetHeight);//retorna 400
</script>
</body>
</html>