Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS using ::selection for an input field

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26566
    dvdgoss
    Member

    i am trying to get the text boxes on a page to have a specific background color of the text inside them when selected. i know about the new css 3.0 ::selection method and therefore tried this code:

    input::selection
    {
    background: #404040;
    }

    however, it has no effect. i am running safari 4.0 and when you take the ‘input’ bit away it works fine on the body text but not in the text boxes.

    i begin to think it might not be doable but would love to know either way.

    cheers

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.