How to measure for gate

Are you confused about how to work out what size gate you need? These three illustrations should help

How to measure for a new gate

What to measure to work out what size gate I need.