+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How do you make a textarea with a scrollbar?

  1. #1
    Album is offline x10 Sophmore Album is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    174

    How do you make a textarea with a scrollbar?

    I copied this code from www.funky-chickens.com


    <ilayer name="scroll1">
    <div id="scroll3"
    style="width:100;height:75;
    background-color:blue;
    overflow:auto">
    <font face=verdana color=white>
    you can use almost any kind of html in these textareas
    </textarea></div>


    It's supposed to have a scroll bar with it: http://www.funky-chickens.com/tarea.shtml

    But when i put it on my site, it just filled the screen, and it wasnt in a small box with scrolls...

    Can anyone please teach me how to make textareas that have scroll bars attached to them?


    Any advice would be greatly appreciated. Thanks
    Last edited by Album; 10-22-2005 at 07:55 PM.

  2. #2
    Album is offline x10 Sophmore Album is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    174

    Re: How do you make a textarea with a scrollbar?

    Here's my website:

    www.bumanga.x10hosting.com

    Im having problems with the text area. (See the blue area on the left side of the screen)

    I added the "sadfdsafgdsgasddfdsagfdsag" to illustrated how my text area does not use scrolls, instead it just expands the cell in the table.

    How can I make it so the text area will have a scroll bar (vertical AND horizontal)?

  3. #3
    ranereins's Avatar
    ranereins is offline x10Hosting Member ranereins is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    19

    Re: How do you make a textarea with a scrollbar?

    Try this:

    <textarea cols="70" rows="3" name="textarea">Your content here</textarea>

    With this code though, if you want the scrollbar to be a custom color, you need to use a CSS. You can also chance the width and height by changing the numbers (be careful though, this code doesn't use pixels for the size parameters).

    And as far as I know you can't have a horizontal scroll bar on textareas... if you want something with that, try frames.
    Last edited by ranereins; 10-22-2005 at 08:29 PM.

  4. #4
    Album is offline x10 Sophmore Album is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    174

    Re: How do you make a textarea with a scrollbar?

    Quote Originally Posted by ranereins
    Try this:

    <textarea cols="70" rows="3" name="textarea">Your content here</textarea>

    With this code though, if you want the scrollbar to be a custom color, you need to use a CSS. You can also chance the width and height by changing the numbers (be careful though, this code doesn't use pixels for the size parameters).

    And as far as I know you can't have a horizontal scroll bar on textareas... if you want something with that, try frames.
    Yeah, that gave me a scrollbar for the text area, but it doesnt allow html to work inside the text area.

    www.bumanga.x10hosting.com

  5. #5
    ranereins's Avatar
    ranereins is offline x10Hosting Member ranereins is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    19

    Re: How do you make a textarea with a scrollbar?

    Well of course not... text areas are for text, not html code. (Text areas are most commonly used to display html code so that it can be copied.) If you want something where you can use html, use frames.

  6. #6
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: How do you make a textarea with a scrollbar?

    Yes, HTML won't work in a text-area, unless it is a WYSIWYG text-editor, such as Tiny MCE. Instead, the text-area will show the ACTUAL ascii character, such as "<" and ">".

    Also, to make a text-area wrap, look at this: http://www.htmlcodetutorial.com/form...AREA_WRAP.html
    Last edited by Bryon; 10-22-2005 at 10:04 PM.

  7. #7
    Album is offline x10 Sophmore Album is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    174

    Re: How do you make a textarea with a scrollbar?

    i tried frames once, but right now I'm working on a template.
    With frames, dont you have to have two pages in one or something like that?

    So, I made this page for testing it:
    http://www.bumanga.x10hosting.com/testing.html

    How would i make it so that it would only be in the area on the left which currently is a bunch of gibberish and a small text area? (that section is a cell in a table)

  8. #8
    Album is offline x10 Sophmore Album is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    174

    Re: How do you make a textarea with a scrollbar?

    I found this site that helps

    http://64.233.167.104/search?q=cache...22+codes&hl=en

    So I think it works now.

    Thank you guys for all your help!

  9. #9
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: How do you make a textarea with a scrollbar?

    Ok I don't understand what you are saying/asking. I would say to check out w3schools.com though to see about frames. Here's a link: http://www.w3schools.com/html/html_frames.asp

  10. #10
    rahul2006 is offline x10 Sophmore rahul2006 is an unknown quantity at this point
    Join Date
    Oct 2005
    Location
    IN THE HELL , WANT TO JOIN THEN PM ME
    Posts
    214

    Re: How do you make a textarea with a scrollbar?

    hey thank u for the text area code i wanted it?

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Your Website Needs
    By IamShipon1988 in forum Graphics & Webdesign
    Replies: 14
    Last Post: 06-21-2010, 07:47 AM
  2. Can anyone make me a banner?
    By MicrotechXP in forum The Marketplace
    Replies: 62
    Last Post: 01-02-2006, 09:56 PM
  3. Can anyone make me a banner or two
    By Kay in forum The Marketplace
    Replies: 12
    Last Post: 12-22-2005, 08:11 PM
  4. Make A Cool Advanced Brushed Sig
    By redtailblackshark in forum Tutorials
    Replies: 34
    Last Post: 10-22-2005, 07:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers