styling to prevent cursor from shifting the text