change fonts in input fields

J

Jukka K. Korpela

Scripsit Desmond:
Is it possible to change the font in an input type=text and a textarea

Yes. And yes to the repeated question, too. :)

Put the following into your <head>:

<style type="text/css">
input { font: 100% Courier New, monospace; }
textarea { font: 100% Arial, sans-serif; }
</style>

This defeats bad browser defaults (reduced font size, and monospace font
where the user suffers from it but not where he might benefit from it).

With the usual CSS Caveats of course.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top