Title: another &lt;input type=&#8221;image&#8221; &#8230;&gt; question
Last modified: August 19, 2016

---

# another <input type=”image” …> question

 *  [lauras_2009](https://wordpress.org/support/users/lauras_2009/)
 * (@lauras_2009)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/another-ltinput-typeimage-gt-question/)
 * I’ve seen several posts asking the same question but I still can’t get this to
   work.
 * I have a search text field with an image button. Here’s the HTML:
 * <input type=”text” class=”textbox” /><input type=”image” src=”images/button_search.
   gif” class=”sbutton” border=”0″ name=”search” value=” ” />
 * and here’s the CSS:
    .button_search { background-image: url(‘images/button_search.
   gif’); width: 153px; height: 41px; }
 * .sbutton {
    width: 153px; height: 41px; }
 * I don’t know why I would need two separate classes for the button … it’s just
   something I tried after reading suggestions from others.
 * Any help would be much appreciated.
 * Laura S.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/another-ltinput-typeimage-gt-question/#post-1149083)
 * `<input type="text" class="textbox" /><input type="image" src="<?php bloginfo('
   template_directory'); ?>/images/button_search.gif" id="sbutton" name="search"
   value=" " />``
 *     ```
       #sbutton {
       width: 153px;
       height: 41px;
       }
       ```
   
 *  Thread Starter [lauras_2009](https://wordpress.org/support/users/lauras_2009/)
 * (@lauras_2009)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/another-ltinput-typeimage-gt-question/#post-1149099)
 * Yes yes yes!!! Thank you so much!
 * Laura S.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘another <input type=”image” …> question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [lauras_2009](https://wordpress.org/support/users/lauras_2009/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/another-ltinput-typeimage-gt-question/#post-1149099)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
