Refactoring HTML/CSS code and resizing pages