change index.html to template and css resizing