Text Boxes - Colour Background?

Discussion in 'HTML' started by Keith, Jun 8, 2004.

  1. Keith

    Keith Guest

    Is it possible to colour the backgrounds of certain text boxes?

    Thanks
     
    Keith, Jun 8, 2004
    #1
    1. Advertising

  2. Keith

    Steve Pugh Guest

    "Keith" <@.> wrote:

    >Is it possible to colour the backgrounds of certain text boxes?


    Yes. Same as any other element set the background-color property in
    your stylesheet. Don't forget to always set the color property at the
    same time in order to avoid clashes with user stylesheets, etc.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Jun 8, 2004
    #2
    1. Advertising

  3. Keith

    Mark Parnell Guest

    On Tue, 8 Jun 2004 10:02:55 +0100, Keith <@.> declared in alt.html:

    > Is it possible to colour the backgrounds of certain text boxes?


    As Steve said, it is trivial using CSS. But be aware that browsers tend
    to be fairly strict on what they will allow you to do to form elements,
    and results may vary from browser to browser.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
     
    Mark Parnell, Jun 9, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Doe

    Set the background colour of a grid

    John Doe, Oct 21, 2003, in forum: ASP .Net
    Replies:
    7
    Views:
    382
    Alvin Bruney
    Oct 22, 2003
  2. JezB
    Replies:
    9
    Views:
    380
    Curt_C [MVP]
    Apr 30, 2004
  3. Derek Johnson

    form text field background colour

    Derek Johnson, Sep 21, 2003, in forum: HTML
    Replies:
    6
    Views:
    35,349
    Kae Verens
    Sep 22, 2003
  4. Dj Frenzy
    Replies:
    3
    Views:
    354
    Robert
    Feb 10, 2004
  5. jodleren
    Replies:
    2
    Views:
    221
    Thomas 'PointedEars' Lahn
    Jan 12, 2008
Loading...

Share This Page