Thanks for your reply, I got the code as an output from the processing app I was using, I just added the #bottom anchor to it. I've counted the object openings and divs and it looks like there are enough, I think, so I count 1stDiv open, 2ndDiv open, 1stObject open, 2ndObject open, 1stObject close, 2ndObject close, 1stDiv close, 2ndDiv close.
I've never had a problem with the processing output code before, I tried closing an object before opening another but it did not make any difference. I also tried adding two #bottom links for those object beginnings but that didn't work either.