Changing the text color in a text box

Discussion in 'HTML' started by Richard, Dec 16, 2005.

  1. Richard

    Richard Guest

    i know it might simple to others. I am just wondering how to change
    the text color in a texbox.

    Richard, Dec 16, 2005
    1. Advertisements

  2. Are you familiar with CSS? That's what you'll need to do it. For

    <style type="text/css">
    form input {/*************************************/
    color: blue;/* this here's the interesting bit */
    <input type="text" value="this is a test">

    Never used CSS before? There're a plethora of tutorials on the web,
    for example:

    or, if the link breaks,

    Hope this helps,

    Walter Gildersleeve
    Freiburg, Germany

    URL Shortening
    Free and easy, small and green.
    dsa2kja0f9laj, Dec 16, 2005
    1. Advertisements

  3. Wrong advice. First, blue is wrong color for text on web pages, unless the
    text is a link. Second, you haven't specified background color, i.e. you have
    missed the "C" of "CSS".
    Jukka K. Korpela, Dec 16, 2005
  4. Richard

    ghoul-cow Guest

    stay out of trucking pedo.
    ghoul-cow, Dec 22, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.