This question already has an answer here:
I've got this thing where I go around the world and hold their famous monuments with my hand through perspective photography. For example, holding the learning tower of Pisa. The pictures I've taken a while back with my Canon SD630 came out the best with both my hand and the tower in focus. Now a days, I'm using a Canon S100 and a Canon t4i. The problem is I can't get them to focus on multiple points or not focus on any points at all like I could do with my SD630. The same picture with Pisa with these two cameras, it's either my hand in focus on the tower, never both that was possible with the 630.
I'm still new to photography, what's causing that and how can I get around it?