Question: Can I make textarea larger (larger text)?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All,

    I have a simple html page (see below), which uses some javascript and
contains a small textarea (4 rows by 5 cols). What I want to know is,
is there a way of making the text in the textarea appear larger???

    Peter W. :-)))
Sandy Bay, Hobart, Tas, AU.

(delete silly boy to reply via email).

--- code follows ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<script language="JavaScript">
<!-- Begin animation ---
var frame_count=0;
var nl="\r\n";

function Animate()
        document.animation.viewer.value = cartoon[frame_count];
        if (cartoon[++frame_count]==null) frame_count = 0;
        // Remove "//" from start next line to show it a frame at a
        // if(confirm('continue?'))
        setTimeout("Animate()", 200);  // Change number here to change

var cartoon = new Array(
" o \r\n"+
" /\r\n",

" o \r\n"+
" >\r\n" // more frames than this, obviously...
);// ---- End animation script ----->

<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<BODY text=white bgcolor=black onload=Animate()>
<FORM NAME=animation><center>
--- end code ---

Re: Question: Can I make textarea larger (larger text)?

Using a pointed stick and some pebbles, Peter Williams scraped this into
the dirt:

Quoted text here. Click to load it

Yes. You can either add the attribute:

style="font-size: 1.2em;"

to the textarea element, substituting 1.2em for whatever number greater
than 1 that you wish, or by adding:

<style type="text/css">
   textarea {
       font-size: 1.2em;

to the <head> section of your page. Using the second method will make
the text in *all* textareas larger, whereas using the former will only
affect that one particular element.

Dylan Parry -- Where the Music Progressively Rocks!

Site Timeline