made elements not resize when a link or img is clicked