Concering textboxes using PHP

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

toadsMoke
New php-forum User
New php-forum User
Posts: 3
Joined: Fri Dec 05, 2003 11:13 am
Contact:

Concering textboxes using PHP

Postby toadsMoke » Fri Dec 05, 2003 11:14 am

I am currently trying to figure out a method of making a textbox that is
400x400 with the alignment of text inside set to justified. also, when there
is too much text to fit in the box, a vertical scroll bar can be used to
scroll down.

If someone could paste the code required that would be great. I've been
trying to figure this one out for a week, but my knowledge of PHP is too
limited as of yet to do this.

If this isn't possible, what script should I use to efficiently do this?

Thanks in advance.

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Fri Dec 05, 2003 1:33 pm

Moved to HTML Basics. This has nothing to do with PHP. Something like this would do fine:

Code: Select all

<html>
   <head>
      <style type="text/css">
         textarea#mytextbox {
            width: 400px;
            height: 400px;
            text-align: justify;
         }
      </style>
   </head>
   <body>

      <form>
         <textarea id="mytextbox"></textarea>
      </form>
   </body>
</html>

toadsMoke
New php-forum User
New php-forum User
Posts: 3
Joined: Fri Dec 05, 2003 11:13 am
Contact:

Postby toadsMoke » Fri Dec 05, 2003 3:27 pm

The problem with doing it that way is the justify alignment actually doesn't work.

I do not want to use frames

There must be other options.

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Fri Dec 05, 2003 11:45 pm

toadsMoke wrote:The problem with doing it that way is the justify alignment actually doesn't work.

I do not want to use frames


Right you are. Looks like the textarea element doesn't support the justify attribute.

I can't think of another way to do this without seriously jeopardizing the potential usability of your site. In fact, justifying text in a textarea seems pretty counter-intuitive anyway -- users expect textareas to behave in a very particular way. Making textarea input justified doesn't really have any potential benefit (aesthetic? I don't think so..). What, exactly, are you trying to accomplish by doing this?

toadsMoke
New php-forum User
New php-forum User
Posts: 3
Joined: Fri Dec 05, 2003 11:13 am
Contact:

Postby toadsMoke » Fri Dec 05, 2003 11:57 pm

http://dwn.is-a-geek.com/index.php?id=updates

basically just that. but i dont want to use iframes or frames of any kind...


Return to “HTML Basics”

Who is online

Users browsing this forum: No registered users and 0 guests

cron