Self-focusing and defocusing of Gaussian laser beams in collisional inhomogeneous plasmas are investigated in the presence of various laser intensities and linear density and temperature ramps. Considering the ponderomotive force and using the momentum transfer and energy equations, the nonlinear electron density is derived. Taking into account the paraxial approximation and nonlinear electron density, a nonlinear differential equation, governing the focusing and defocusing of the laser beam, is obtained. Results show that in the absence of ramps the laser beam is focused between a minimum and a maximum value of laser intensity. For a certain value of laser intensity and initial electron density, the self-focusing process occurs in a temperature range which reaches its maximum at turning point temperature. However, the laser beam is converged in a narrow range for various amounts of initial electron density. It is indicated that the σ2 parameter and its sign can affect the self-focusing process for different values of laser intensity, initial temperature, and initial density. Finally, it is found that although the electron density ramp-down diverges the laser beam, electron density ramp-up improves the self-focusing process.