Mark off the area where you want to store the trash cans. Decide whether you want an enclosure with two, three or four sides. Compare your measurements with the sizes of fence panels sold and adjust them to fit accordingly so that installing them is easier.
Dig holes for the wooden corner posts using a shovel or post hole digger until the hole is a third of the length of your pole. For example, dig a hole 2 feet deep for a 6-foot pole.
Set the posts into the holes and tamp the soil down firmly with a pole tamper until the hole is filled and even with the soil. Have a helper hold the post plumb while you fill in the hole.
Attach the fence sections to the posts, using the hardware that comes with the fencing. Level each section carefully while attaching the sections.
Attach hinge hardware where one of the sections will serve as a door to the trash area. Use erosion-proof wood screws to secure the hinge to the corner post and fence.