Rather than allow your camera to choose it's own focus area using focus 'auto-area / grid area', you'll get far more consistent results if you just use one focus area that you have control over. But depending on your camera, you may not be able to get out of the auto area / grid area mode unless you first get out of the 'full auto-mode' and switch to Aperture Priority, Shutter Speed priority or the 'P' mode.
Once you've done that you should have a focus area in the dead centre of your viewfinder or LCD screen, it normally lights up when you half press the shutter. But, just like in the above photo, what if your main subject is not in the centre, or you want to use the rule of thirds for a better composition?
'Focus and re-compose' to the rescue
All you need do is place the focus square on your main subject, and half-press the shutter. That will lock the focus and exposure. Then, keeping the shutter half-pressed, re-compose so that your subject is now in the correct position in the frame.
Nesting black swan, taken using 'focus and re-compose' at f2.8
Nesting black swan, taken by moving the focus area
Comparison of the two photos.