At the end of seafloor spreading, where does the molten rock solidify?

center of the ridge
on the edge of the ridge
under the new rock
between the old rock layers