[thelist] How to control TEXTAREA font size, etc...?
Mr Dave
squalid at libertysurf.co.uk
Sun Sep 10 16:39:09 CDT 2000
As far as I know, Netscape doesn't support textarea formatting. Maybe it will in
Netscape 6, haven't tried it though.
Cheers, Mr Dave.
Simon wrote:
> A good Sunday to all,
>
> I have some pages to put online where there will be
> a textarea field which has html code that someone can
> copy for their site. I'd like to be able to control how the
> textarea contents is formatted, mostly so the size of
> the textarea field is about the same on the most
> popular browsers.
>
> I've used this CSS snippet in the document HEAD as follows...
>
> <style type="text/css" rev=stylesheet media=screen><!--
> textarea {
> font-size: 9px;
> text-align: left;
> color: black;
> font-family: arial, helvetica, sans-serif;
> }
> --></style>
>
> That works fine in IE5 but in Netscape 4.7 it seems to have no effect whatsoever.
>
> I've also tried making textarea a class like this...
>
> <style type="text/css" rev=stylesheet media=screen><!--
> .textarea {
> font-size: 9px;
> text-align: left;
> color: black;
> font-family: arial, helvetica, sans-serif;
> }
> --></style>
>
> and then using...
>
> <textarea name="txt" rows=10 cols=85 readonly
> class=textarea>
>
> Also tried....
>
> <textarea name="txt" rows=10 cols=85 readonly
> style="font-size:9px; font-family: arial, helvetica, sans-serif;">
>
> Nothing seems to have any effect on Netscape.
>
> Any hints or pointers appreciated,
>
> Simon
>
> --
>
> "A man said to the universe, 'Sir, I exist.'
> 'However,' replied the universe, 'the fact
> has not created in me a sense of
> obligation.'" ... Stephen Crane
>
> --
>
> ------------------------------------------------
> Sentient Technologies - mailto:sentient at mail.com
> ------------------------------------------------
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list