Yii Framework Forum: Textarea - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Textarea customize text alignment of textarea Rate Topic: -----

#1 User is offline   Jijgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 16-June 12

Posted 22 April 2013 - 01:52 AM

The problem is not about Yii framework, but I need help.
My national script is written vertically, aligned from left to right.
I need to customize text alignment of textarea for this requirement.
By default, text in the text area is written horizontally, aligned from top to bottom. I attached a picture of my national script with this post.
Any idea how I do this? How do I customize text alignment of text area?
Sorry for my poor English.

Attached File(s)

  • Attached File  align.png (51.67K)
    Number of downloads: 12


#2 User is offline   Keith 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,707
  • Joined: 04-March 10
  • Location:UK

Posted 22 April 2013 - 03:43 AM

I struggled to find much information, but this post suggests that supporting vertically written languages in form inputs is rare. It also suggests that there's little support for it.

#3 User is offline   andy_s 

  • Random Member Title
  • Yii
  • Group: Moderators
  • Posts: 1,526
  • Joined: 22-June 09
  • Location:Russia, Kostroma

Posted 22 April 2013 - 04:08 AM

Topic is moved from Yii discussions forum. I guess it's not even related to PHP...

#4 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,626
  • Joined: 16-February 11
  • Location:Japan

Posted 22 April 2013 - 08:11 AM

Well, I'm a Japanese and the traditional Japanese texts has been written vertically for so many years like yours (BTW, what language is it?).

It's true that you see many vertically aligned Japanese letters on the web, but they are image files, not texts. Virtually all the body texts are written horizontally. As for inputs, no one expects vertical ones. I've never seen them. It's not supported in the current HTML.

Probably you will need to develop a custom input plug-in for browsers, maybe using Flash or ActiveX ... I really don't know.

So, I encourage you to persuade your customer to forget it. :)

Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users