before the trim - I caulked the gap between the floor and the wall - no dirt or liquid getting in here.