The pet gates illustrated below will all fit effectively in a 35 inch opening.
If your space measure includes fractions of an inch (eg. 35 1/4"), then for measurements less than 1/2", use the pet gate width equal to the number of inches in your measurement (eg. for 35 1/4" use the 35 inch category).
For measurements that include fractions of 1/2" or greater (eg. 35 1/2" or 35 3/4"), then select the pet gate width that is one inch greater than the number of inches in your measure (eg. for 35 1/2" use the 36 inch category).