WordPress.org

Support

Support » Themes and Templates » [Resolved] Replace Image

[Resolved] Replace Image

  • I want to put an image in the ‘search’ input field. How would I go about doing this, I’ve looked around but didn’t see anything and thought one of you might have already done this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • css:

    input#search-box {
    background: url(myimage.png);
    }

    where search-box is the id of the box you want to change.

    so does the input type change or no? I.e. is it type=”image” or type=”submit”

    Aah, I see what you’re getting at. You can use both. If you use type=”submit”, you’ll need to use the css I mentioned above. If you use type=”image”, you’ll need to add an src=”myimage.jpg” Both do the same thing, but be sure to test in different browsers, because support for form-button styling is a little shoddy. I’d probably go with type=”image” if I were you.

    This page may help: http://htmldog.com/guides/htmlbeginner/forms/

    yeah i should of clarified, the question should have been use type=”image” or type=”submit” but thanks for the help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Replace Image’ is closed to new replies.