Support » Themes and Templates » Replace Image

  • Resolved corefx

    (@corefx)


    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)
  • jalenack

    (@jalenack)

    css:

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

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

    corefx

    (@corefx)

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

    jalenack

    (@jalenack)

    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/

    corefx

    (@corefx)

    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 ‘Replace Image’ is closed to new replies.