1

Please have a look on fiddle

http://jsfiddle.net/URBfj/

i have given padding-left to input tag and now when i am scrolling text in input tag its working fine bt in ie its not working fine.Ie not taking padding.

supersaiyan
  • 1,670
  • 5
  • 16
  • 36

2 Answers2

0

See workaround on exact same question (though right instead of left side) HTML: IE: Right padding in input text box

Community
  • 1
  • 1
Henrik Ammer
  • 1,889
  • 13
  • 26
  • OT question: How much rep do you need for that? Is that the same as if I flag the question as a duplicate? – Henrik Ammer Sep 04 '12 at 08:32
  • You need 3000 http://stackoverflow.com/privileges/close-questions I assume it's the same as flag, but I'm not sure. – Ariel Sep 04 '12 at 08:37
0

You can use css property text-indent for this element:

For example:

<input style="text-indent:15px" name="" type="text" value="test testtesttesttesttesttest" />
Brotheryura
  • 1,158
  • 13
  • 21