Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-11-21 17:18:29

MangoPlex
New member
From: Vancouver
Registered: 2006-02-11
Posts: 7
Website

initial direction of the text area

Hi,

My site supports right-to-left languages (Hebrew, Arabic).

Is it possible to set the button "right to left direction" to be pressed when the form loads?

Thanks!

Last edited by MangoPlex (2006-11-21 18:04:16)


[url=http://mangoplex.com/forums/display_forum.php?fid=2]MangoPlex[/url] - The forums centre

Offline

#2 2006-11-23 02:23:12

MangoPlex
New member
From: Vancouver
Registered: 2006-02-11
Posts: 7
Website

Re: initial direction of the text area

OK, I've found out how!

To set an initial right to left, put between the <textarea> and the </textarea>:
<p style="direction:rtl; text-align:right"><br /></p>

To set an initial left to right, put between the <textarea> and the </textarea>:
<p style="direction:ltr; text-align:left"><br /></p>

It's a good idea to set it even if your site is English only, that way the output will always have <p> around the first paragraph. Otherwise in some cases the first paragraph will have no <p> around it...


[url=http://mangoplex.com/forums/display_forum.php?fid=2]MangoPlex[/url] - The forums centre

Offline

Board footer

Powered by FluxBB