SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: textarea RTL
-
Dec 20, 2008, 11:48 #1
- Join Date
- Oct 2008
- Posts
- 263
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
textarea RTL
Hello
I have a whole page that is in English. However I had a text area which I planning to use it write rtl text. So I want to be able to type in it from rtl...
Thank you..
-
Dec 20, 2008, 13:37 #2
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code HTML4Strict:<textarea rows="8" cols="80" dir="rtl"></textarea>
Birnam wood is come to Dunsinane
-
Dec 21, 2008, 01:43 #3
- Join Date
- Oct 2008
- Posts
- 263
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thank you
works great.
Another question please... Can we make the default input language inside that text area other than English? I mean so that the user does not have to switch the keyboard language manually...
-
Dec 21, 2008, 01:58 #4
- Join Date
- Jan 2007
- Location
- Christchurch, New Zealand
- Posts
- 14,729
- Mentioned
- 104 Post(s)
- Tagged
- 4 Thread(s)
The following page has all you need to know:
http://www.w3.org/TR/REC-html40/struct/dirlang.html
For example:
Code html4strict:<textarea rows="8" cols="80" lang="he" dir="rtl"></textarea>
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
-
Dec 21, 2008, 02:02 #5
- Join Date
- Oct 2008
- Posts
- 263
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thank you!!
Bookmarks