Use the text-align property in your CSS:
input {
text-align: right;
}
This will take effect in all the inputs of the page.
Otherwise, if you want to align the text of just one input, set the style inline:
<input type="text" style="text-align:right;"/>
More Related Contents:
- How to collect and manipulate data in HTML using
- Bootstrap height
- How to align checkboxes and their labels consistently cross-browsers
- Put icon inside input element in a form
- What’s the proper value for a checked attribute of an HTML checkbox?
- Google Chrome form autofill and its yellow background
- How do I change the color of radio buttons?
- Is there a way to style part of an input field’s value? [duplicate]
- Disabled form fields not submitting data [duplicate]
- Use a normal link to submit a form
- how to POST/Submit an Input Checkbox that is disabled?
- How to disable the resize grabber of ? [duplicate]
- How to add button inside input [closed]
- How can I style a file input field in Firefox?
- Inline Form nested within Horizontal Form in Bootstrap 3
- Bootstrap 3 – How to maximize input width inside navbar
- Why do s clear floats?
- Can a ::before selector be used with a ?
- What characters are allowed in the HTML Name attribute inside input tag?
- How do I style the HTML form validation error messages with CSS?
- HTML: Characters allowed for name attribute of input element?
- How to add button inside an input [closed]
- Multiple submit buttons on HTML form – designate one button as default [duplicate]
- Can you style html form buttons with css?
- Styling autocomplete dropdowns in browsers
- How do I make a text input non-editable?
- Why use definition lists (DL,DD,DT) tags for HTML forms instead of tables?
- How can I control the height of an Option element in Webkit?
- Make input element (type=”text”) handle multiple lines of text
- How do I style radio buttons with images – laughing smiley for good, sad smiley for bad?