converting css from px to % and delete un necessery