Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: setting "input" field font size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting "input" field font size



Hi Robert,

With _javascript_ you can do the following:

document.forms[0].firstname.style.fontSize = "15px";

What I'd suggest doing is making the change permanent in an external CSS style sheet or using inline CSS.  With external CSS you can add an id to the input element, unless you wish to change the size for all of them with something like:

input { font-size: 15px; }

or use inline CSS with something such as:

<input type="text" name="firstname" value="XXXX" size="20" style="font-size: 15px" />

HTH,

- sf

On 1/8/08, Robert Poland <email@hidden> wrote:
Hi,

I am trying to set the font size of the input fields of a form. In the
example below I want to set the "XXXX" to a  larger size.

I have looked many places and that doesn't seem to be an option.

Help would be appreciated.

Sample script:

<html>
        <body>
                <table>
                        <tr>
                                <td class="style1" height="50">
                                        <form action="" style="border:2px solid #DCDCDC">
                                                First name:
                                                <input type="text" name="firstname" value="XXXX" size="20" />
                                        </form>
                                </td>
                        </tr>
                </table>
        </body>
</html>


Bob Poland - Fort Collins, CO



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (

This email sent to
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >setting "input" field font size (From: Robert Poland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.