01-03-2003, 04:47 PM
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 ???
01-03-2003, 04:52 PM
it would probably be best to use an iframe, although there are some other methods of doing what you want disscussed here:
01-03-2003, 05:01 PM
you can incorperate just about anything you want into a div element.
01-03-2003, 05:06 PM
In other words, something like:
height : 10em;
overflow : scroll;
01-03-2003, 08:11 PM
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? :D
01-03-2003, 08:14 PM
I think that he means that the textarea can only hold plain text and no markup.
01-03-2003, 08:15 PM
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>