Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    58
    Thanks
    2
    Thanked 1 Time in 1 Post

    input type="search" safari

    So I know that in safari when you have an input with a type of 'search' then it automatically generates the background so that it can do further searches. (It does that traditional background with the magnifying glass on the side). Is there any ways (using ONLY css) to change the background to invisible so that I can have an image behind it and/or change the color and/or basically edit that?

    I don't want to change the type to 'text' so please don't suggest that. I would prefer to keep it as search if at all possible.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why are you catering to just Safari? You could try adding an id to the input and then setting its background to none however its likely you won't be able to edit it very much as its probably similar to the input with type="file".
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Dec 2008
    Posts
    58
    Thanks
    2
    Thanked 1 Time in 1 Post
    Yeah, I tried changing the background to none with no results.

    I'm not catering to safari. The person I am developing this website for is insisting on using type=search with a unique background against what I informed him. I am trying to see if it is even possible. Might as well try before 'giving up'

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    But they do know input="search" likely won't work in other browsers right?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Dec 2008
    Posts
    58
    Thanks
    2
    Thanked 1 Time in 1 Post
    I assume so. Thats what they wanted, so thats what they got. We are just going to use a javascript fix apparently so nvm on the question.


  •  

    Posting Permissions

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