SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: textarea RTL

  1. #1
    SitePoint Addict
    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..

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code HTML4Strict:
    <textarea rows="8" cols="80" dir="rtl"></textarea>
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Addict
    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...

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 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

  5. #5
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •