OK, ive got an easy one

how do i stop the movement of an obect moving from left to right. I want to be able to place it anywhere id like.
Thanks
Buster Hymen