SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Kokos's Avatar
    Join Date
    Nov 2005
    Location
    The Netherlands
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form selection different color?

    How do I make it that when you select a textfield or textarea (so that your cursor appears) that the background changes color?

    Taking over the web one pixel at a time.
    Currently working @ CodeCreators

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You use input:focus and textarea:focus { background: color; }. Unfortunately, IE doesn't support hover or focus on anything other than pseudo classes, so you need to use something like the whatever:hover.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •