By a hair's breadth
By a hair's breadth
By an extremely small margin or a very narrow distance.
He avoided the accident by a hair's breadth as the car swerved just in time.
They won the match by a hair's breadth, scoring the winning goal in the final seconds.