Certified GKH Gardening Expert
Yes, they grow well on trellises. This is called vertical gardening. This article focuses on growing vertically in containers, but you can do the same with plants in the ground. Here is more information on it: https://www.gardeningknowhow.com/edible/vegetables/vgen/growing-a-vertical-vegetable-garden.htm, https://www.gardeningknowhow.com/edible/vegetables/squash/growing-squash-on-trellises.htm Also, for the zucchini, you can look for bush varieties. These will grow in a self contained mound rather than a sprawling vine.