ndex.html resizes incorrectly