You can apply a wax ring to fill up the gap. Using grout will also be a solution for putting in the middle point of a toilet and floor base.