SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can I make a Div act like a submit image?

    Hi,
    I have this code

    <div class="button marg-124"> Search </div>

    which is basially a blue backgroud with the word seach in white, is there a way to make this behave as a submit or do i need to create a button?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could do it with JavaScript, but it'd be very poor usability. Anyone with JavaScript disabled wouldn't be able to submit the form.

    Why not use a button and style it the way you want, instead?
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •