Forums

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

Home Forums CSS How to style clear element in search field

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #182343
    Steven Gardner
    Participant

    Hi,

    I’m trying to change the color of the clear (X) element at the right hand side of a search input.

    I have changed the outline of the input while in focus but Can’t work out how to effect the little cross.

    Thanks
    Steven

    #182345
    shaneisme
    Participant

    We can’t help you without seeing it.

    Please set up a Codepen or provide a URL to a live demo.

    #182350
    Steven Gardner
    Participant

    Hi Shaneisme,

    I’m not sure why you would need to see code. This is a standard HTML5 element <input type=”search”>.

    When you start typing a small clear element appears (x) depending on browser support. chrome for example displays a small blue cross to the right hand side.

    I want to change the color of that element.

    Thanks

    #182356
    Paulie_D
    Member
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.