I want my cursor to the top right of the text box. I am making a chat application and need cursor to type from top right. What is the HTML/CSS code for that?enter image description here
CodePudding user response:
To take the cursor to the right use text-align: right
attribute
#FirstName{
text-align: right;
}
<label for="firstname">Enter Your Name</label>
<input name="firstname" id="FirstName" type="text">