Changing text-area font face.

Hi all!
The question:
Is it possible to change the type-face of a form text-area, to be different from "Courier"?
Creating a "CSS Style" to "redefine" it, works fine in IExplorer (this way):
------------------------------------
<STYLE TYPE="TEXT/CSS">
<!--
textarea {  font-family: Bedrock}
-->
</STYLE>
------------------------------------
but this doesn't work in Netscape (what a surprise! ;-)
Does anybody know the way to do this, obviously working in both browsers?.

TIA.

Bod:.

LVL 1
bodhyAsked:
Who is Participating?
 
oubelkasConnect With a Mentor Commented:
ok....

thanks :)

Joseph

PS: You could also accept one of my comments as an answer ;)
0
 
oubelkasCommented:
It doesn't work with textarea. Though with input type="text" it does. Netscape doesn't support textarea and style sheet yet, though I think it will in future releases of NS.

Joseph
0
 
oubelkasCommented:
This is also the case for dropdown boxes, the style sheet doesn't work with this either. Hmmm, just let we say that NS *now* sucks with CSS.

Joseph
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
xabiCommented:
NS lately sucks.
I think that too Joseph

xabi
0
 
knightEknightCommented:
I don't know if this will work, but you may try a simple font tag:

<FONT face="bedrock">
<TEXTAREA name='mytextarea'></textarea>
</font>


0
 
bodhyAuthor Commented:
Sorry knightEknight, that doesn´t work...

Has anyone another idea, or must I delete this question (that seems it can't be solved)...

Thanks anyway.

Bod:.
0
 
bodhyAuthor Commented:
I've been trying again and, oubelkas
is in the truth... styles works with INPUT = "text", in both browsers...
but doesn't whith Textarea...

Bod:.
0
 
oubelkasCommented:
Doesn't font work?? It must bodhy.

Which browser are you using??

Joseph
0
 
bodhyAuthor Commented:
I say that it doesn't work with "TEXTAREA", with "INPUT = TEXT" it works fine...

I need a text-area that can scroll, so, single-line input text-area isn't suitable for my idea...

Do you know how to apply style to a scrolling text-area...?

Sorry if my english is bad.

TIA.

Bod:.
0
 
oubelkasCommented:
<FONT face="bedrock">
<TEXTAREA name='mytextarea'></textarea>
</font>

works fine for me, I'm using IE5.0 and NS4.5 and on both browsers it gives the necessary output.

Well style sheet don't work for textarea with NS yet, so that's not an option, the only way to apply this style is with the <FONT> tags.

Which browser version of NS are you using?

>> Sorry if my english is bad.

Don't apologise, we understand you.. ;)

Joseph
0
 
bodhyAuthor Commented:
Hi again...
I don't know what i'm doing bad...
The solution from Joseph works in Netscape, but not in Explorer...

A sample I made is located at:
http://www.clar.net/lapsus/xxx.htm

What's wrong with it?
It displays a Arial in Netscape (as supossed to be), but it still displays a courier in Explorer5.

Sure I commited a little error.

Thanks again for your time.

Bod:.






0
 
oubelkasCommented:
You're absolutely right,

the font tags don't have any effect on textarea in IE but do in NS and style sheet don't have any effect on textarea in NS but does in IE.....*confusing hunh*

To solve this just use both ;)

<HTML>
<HEAD>
<TITLE>Temp</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE TYPE="TEXT/CSS">
<!--
textarea {  font-family: Arial,Helvetica, sans-serif}
-->
</STYLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">
<form ACTION="myform" METHOD="POST">
  <FONT FACE="Arial, Helvetica, sans-serif">
  <TEXTAREA name="mytextarea" ROWS="15" COLS="40" WRAP="VIRTUAL">Greetings back to Bod ;)</textarea>
  </FONT>
</form>
</BODY>
</HTML>

Joseph
0
 
bodhyAuthor Commented:
Hi Joseph!
Your code works fine in both browser, before I don't understood that I must combine the Style with the font tag.

So hit the "answer radio button", you have solved the cuestion. Congratulations and thanks a lot.

Bod:.
0
All Courses

From novice to tech pro — start learning today.