Forums

another <input type="image" ...> question (3 posts)

  1. lauras_2009
    Member
    Posted 2 years ago #

    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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    <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;
    }
  3. lauras_2009
    Member
    Posted 2 years ago #

    Yes yes yes!!! Thank you so much!

    Laura S.

Topic Closed

This topic has been closed to new replies.

About this Topic