When wood or plastic trim comes loose from the edge of a tabletop or counter, keeping it place until the glue dries can be a challenge.
Try this clever trick: Coat the loose joint generously with glue, then tighten a small C-clamp onto the edge of the table or counter. Place blocks of scrap wood under the jaws of the clamp to protect the surfaces. Then insert two wood shims from opposite directions in between the edge trim and C-clamp. Tap the shims in tightly to hold the trim.