Could anyone show me a code snippet that produces the “search box” that is similar to the one in this example: http://www.dx.com?
It surprised me that googling “textfield inside image” only gave me all the results of “image inside textfield”.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can’t put inside an image other element, but you can do the following to achieve this effect:
Use a
cssas:And
htmllike:Now, the
search-containerwill be with a background image and inside you can put your search form (input and button).if you want the input without the ‘default’ style your can reset with: