solve pixel exceeding

change using form % to px to solve pixel exceeding