1

I'm trying to create a horizontal scroll bar on the top of a textarea for an HTML form. This has been answered here, and StanleyH's example at http://jsfiddle.net/TBnqw/1/ works perfectly, but I have a further complication.

Can it be rewritten with a <span> instead of a <div>, and also as straight code without any jQuery? The site I inherited has code that modifies all <div>'s, so I'd need to use a <span> in block mode if possible.

Answer:
Fixed for Firefox: http://jsfiddle.net/TBnqw/537

Community
  • 1
  • 1
Tony
  • 2,658
  • 2
  • 31
  • 46

2 Answers2

1

In response to your first question, yes it can be done with span, the only thing I changed was css display:block, which is the main difference between span and a div, see demo here:

http://jsfiddle.net/TBnqw/131/

UPDATE

Non jQuery Solution

amosrivera
  • 26,114
  • 9
  • 67
  • 76
0

Fixed for Firefox: jsfiddle.net/TBnqw/537

Tony
  • 2,658
  • 2
  • 31
  • 46