I am trying to build a HTML5 iPad application where I want to provide the user with a text area with a page lines like effect to enter their details. How can I do this?
Asked
Active
Viewed 1,315 times
3 Answers
3
The easiest way to achieve this is to create a simple PNG-image containing a horizontal line and use it as a repeating background on your textarea.
I created a simple example: http://jsfiddle.net/r4c2a/1/
Step by step, what you should do is:
- Create a repeating pattern image.
- Create your textarea.
- Use CSS to define the line-height of the image and make it as high as your pattern is.
- ???
- Profit
Of course, this is just a rudimentary example and you can style it pretty much any way you want it to look.

Aron Rotteveel
- 81,193
- 17
- 104
- 128
-
Thanx a Lot Buddy. I saw this example and now I am able make this page. – MobileHybridDev Jun 15 '12 at 10:08
0
background-image
for textarea?
Eg: http://css-tricks.com/creating-a-nice-textarea/

long
- 3,692
- 1
- 22
- 38
0
This type of questions are already been answered at How can I show lines in a texarea to make it look like notepad?
And :: CSS Styling text areas like notebook-look
Please refer to them

Community
- 1
- 1

Ashish Gupta
- 1,651
- 14
- 30