An improved hair iron for straightening or styling hair is presented. Image of a desired row is read by horizontal scanning. One slide rail can be subjected to a clamping force by a first clamping device that is supported both on the slide rail and externally.