resize htmlfile