Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Paris, France
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scrolling textarea

    I need a kind of textarea with scroll-bar to show the latest news of my site.

    I first think that a non-modifiable textarea zone could works fine but a textarea does'nt support tags like bold, different color ...

    Any idea of how to achieve what I want ???

    Thanks
    [color=dark blue]Freddy Bee[/color]

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it would probably be best to use an iframe, although there are some other methods of doing what you want disscussed here:

    http://www.codingforums.com/showthre...threadid=12232

    redhead

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can incorperate just about anything you want into a div element.

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Ames, IA, USA
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In other words, something like:

    div {
    height : 10em;
    overflow : scroll;
    }
    Need more emoticons?
    Visit Catman's Private Stock

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: scrolling textarea

    Originally posted by freddybee
    but a textarea does'nt support tags like bold, different color
    I think you havta use inline style and not call on a css class with textareas.

    <textarea cols=30 rows=10 style="font:bold 12 tahoma; color:magenta;background-color:black;" readonly="readonly">Blah blah blah</textarea>

    I found that if you change the scrollbar colors to match the background, the arrows will only show when wrapping.

    Dat what you mean?
    Last edited by zoobie; 01-03-2003 at 08:27 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think that he means that the textarea can only hold plain text and no markup.

  • #7
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i think he meant just a specific word in bold or something.
    if not zoobies explanation would work, its shorthand
    <edit>kinda said the same thing, posted at same time</edit>

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.


  •  

    Posting Permissions

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