How do you stay in the center of your lane while driving without drifting?

I'm learning how to drive and this is something I'm having trouble with. Sometimes, I drive too close to the curb and I drift left and right in my lane.

How do I stay in the center of my lane without drifting?
10 answers 10