PDA

View Full Version : Textarea Style (bold, italics, and such)



TriscuitMich
07-03-2002, 06:01 AM
heres the code i have in:

<center>
<style type="text/css">
textarea{
border: 0px #000000 solid;
background: #000000;
font: normal 10px/normal Arial, Helvetica, sans-serif;
color: #FFFFFF;}
</style>
<textarea
cols="90"
rows="7"
readonly>
-July2-11:39pm-
REALLY BORED!
</textarea>
</center>

------------------

now if i want to have the date & time larger than the actual text ("REALLY BORED") then how would i go about doing it? if i put any coding into the <textarea></textarea> spot then it shows up in my textbox (if that makes any sense!). in other words if i put in: <textarea><b>my name is kellen</b></textarea> then it shows up as: <b>my name is kellen</b> instead of: my name is kellen.

premshree
07-03-2002, 06:58 AM
Hi, if you add any HTML tags within the textarea, it will show up as it is. You can make text in the entire textarea bold.

jkd
07-03-2002, 08:21 AM
You could get tricky with some CSS2 pseudo-classes in Gecko, but I'm not too sure on how well they will work (don't even think about it in IE):

textarea {
font-weight: bold;
}
textarea:first-line {
font-weight: normal;
}

JeanValJean
08-16-2002, 10:09 AM
I wanna ask : How to make textarea's scrollbar invisible
and limit the length of whole paragraph?
If it is impossible to do this , is there any
other methods to accomplish this? THANKS :)

boxer_1
08-16-2002, 02:26 PM
Originally posted by JeanValJean
I wanna ask : How to make textarea's scrollbar invisible
and limit the length of whole paragraph?
If it is impossible to do this , is there any
other methods to accomplish this? THANKS :)

You can limit the number of characters your textarea will accept with this script (http://www.dynamicdrive.com/dynamicindex16/limitinput.htm).

JeanValJean
08-19-2002, 06:38 AM
excuse me , can textarea's scrollbar become invisible ?
THANKS

jkd
08-19-2002, 06:48 AM
textarea {
overflow: hidden;
}

maybe

JeanValJean
08-19-2002, 10:38 AM
THANKS , it works !
Because Your generously help, I'm so lucky to solve my
problem.

herbertrt
11-28-2007, 09:22 PM
for the earlier question about making your background invisible...this should do it

textarea{

background:none;

}