Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 514147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:29:40+00:00 2026-05-13T07:29:40+00:00

Happy holidays, all. I’ll probably feel very silly when I get the answer to

  • 0

Happy holidays, all. I’ll probably feel very silly when I get the answer to this, but I’d like to know how to use the CSS “-webkit-appearance: searchfield-results-decoration” rule to draw a small magnifying glass inside a search box.

I’d like to create a search box like the one in the upper right corner of apple.com. It should have rounded corners, a magnifying glass icon, and a cancel/clear button that appears once the user starts typing. I can get most of the way there with

<input type="search" /> 

but this lacks the magnifying glass icon. I also know I can style an input element with “-webkit-appearance: searchfield” but this just seems to make the rounded corners without the proper left/right padding, icon, or cancel button.

I only care about this working in Webkit since it will be used in a Cocoa WebView. I don’t need markup for IE, Firefox, Opera, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:29:41+00:00Added an answer on May 13, 2026 at 7:29 am

    To get the magnifying glass, you need to add resutls="0" to the search. If you set results to a larger value, like results="5", for instance, the magnifying glass will turn into a drop down menu that can be used to select previously used search terms. You can also add placeholder text, if you don’t want to have a separate label but instead use a placeholder that disappears when you focus the control.

    <input type="search" results="0" placeholder="Search">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello all happy holidays! :) I'm trying to insert comments in my wordpress blog
happy holidays! so, Im grappling with coredata!, now I have info showing in a
Happy Monday to you all! Here is my situation. Any assistance greatly appreciated! I
Happy New Year Everyone! I have this existing php code I did when I
please supply me with the correct SQL in order to delete all records from
I'm trying to implement something like Paul Kulchenko's datamark: http://notebook.kulchenko.com/maps/datamark and I was wondering
I have a bunch of pictures I'm using in a C# project, and I'm
I'm trying to write a stored procedure [SQL 2008] with a dynamic, auto incrementing
Long story short, I took over a project and a table in the database
I have a rather large database exposed to my application using LINQ-to-SQL. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.