fixed css

fixed the css code to work with page resizing.