Reputation: 1429
I have a react front end that has input textfields. The text within these inputs will not start at the top of the input field and wrap appropriately.
Here is the CSS:
input {
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 3px;
color: #2F363A;
font-size: 16px;
height: 140px;
line-height: 19px;
padding-left: 10px;
width: 100%;
-webkit-appearance: none;
}
input {
background-color: white;
-webkit-rtl-ordering: logical;
user-select: text;
cursor: auto;
text-rendering: auto;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
display: inline-block;
text-align: start;
margin: 0em 0em 0em 0em;
-webkit-writing-mode: horizontal-tb;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>
<input
placeholder="Enter key results..."
className="medium"
id="last"
/>
Upvotes: 0
Views: 243