Click to See Complete Forum and Search --> : colors in textarea???


davser
05-04-2007, 08:46 AM
is that any way of give diferent colors in the text of textarea???

Charles
05-04-2007, 08:56 AM
You only get one different color per TEXTAREA but try <textarea style="background-color:#0f0; color#f00"></textarea>

ray326
05-04-2007, 01:52 PM
Think of a textarea as input only. When displaying the content that came in through a textarea, replace the textarea with a div. You can then reconstitute its content in whatever HTML you wish.

iqbal101
05-05-2007, 06:19 AM
tes

pathfinder74
10-05-2007, 12:08 PM
So, is there a way to make it so a textarea has NO BG color.... so whatever the page BG image is will show through?

mrhoo
10-05-2007, 11:52 PM
textarea style="background-color:transparent"

But if the textarea is in a form, the form's bg color will show through

harumph
10-06-2007, 12:38 AM
Yea. But I still like this one:

<html>
<head>
<title> Image in Textarea With Rollover FUN </title>

<style>
textarea.imageOne{
background-color:#ffffff;
background-image:url(image1.jpg);
color:#ff0000;
font-family:verdana,arial;
font-size:12;
font-style:normal;
font-weight:bold;
letter-spacing:normal;
text-decoration:none;
background-repeat: no-repeat;
}
textarea.imageTwo{
background-color:#ffffff;
background-image:url(image2.jpg);
color:#ffCC00;
font-family:verdana,arial;
font-size:12;
font-style:normal;
font-weight:bold;
letter-spacing:normal;
text-decoration:none;
background-repeat: no-repeat;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<form>
<textarea rows="10" cols="50" class="imageOne" onMouseOver="this.className='imageTwo'" onMouseOut="this.className='imageOne'">
</textarea>
</form>
</body>
</html>


Images are fun. You have to admit.

pathfinder74
10-09-2007, 10:51 AM
textarea style="background-color:transparent"

But if the textarea is in a form, the form's bg color will show through

Could have sworn I tried that and it didn't work when I did. Either way... it worked this time. Thanks a bunch.