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

    (@lauras_2009)

    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.