Reputation: 2313
I want the the point at which a user types text into a textfield to be moved to the right without moving the margin of the text field to the right. I want this because the search button lies on top of the text field for styling purposes and currently when a user begins to type text it starts underneath the search button. So I need the default point of the cursor to be moved to the right by a few pixels. Is this possible with CSS?
Upvotes: 1
Views: 7357
Reputation: 1488
input {
box-sizing: border-box;
padding-left: 10px;
width: 200px;
}
<input type="text" />
Upvotes: 0