Div Tag as Form Submission Button

Discussion in 'HTML & Website Design' started by o2pb, Aug 12, 2006.

  1. #1
    I have a search box, and I wanted to use a flash submit button, that has a hover behavior, so I made this button:

    
    <div class="search_button"><a href="#"></a></div>
     
    .search_button a {
    width:29px;
    height:20px;
    background-image:url(images/v7/v7_r13_c5.jpg);
    display:block;
    }
    .search_button a:hover {
    width:29px;
    height:20px;
    background-image:url(images/v7/v7_r13_c5.jpg);
    background-position:0px 21px;
    display:block;
    }
    
    Code (markup):
    How can I make it act as a form submission button?
     
    o2pb, Aug 12, 2006 IP