SitePoint Sponsor

User Tag List

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

    Question Image as checkbox

    Is it possible to substitute a checkbox for an image so that I can post user selections to myself? If so can anyone suggest how..?

    I've used
    Code:
    input type='image' value='Submit'
    to make an image a submit button so I am hoping I can do something similar with the checkbox.

    Apologies if this isn't the right forum_

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2003
    Location
    Morges Switzerland
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can not replace a checkbox with an image, but you may use an image as label - example:
    Code:
    <label for="cb_google_search">
    <input id="cb_google_search" type="checkbox" />
    <img src="logo_plain.png" alt="Google Logo" title="Google search" />
    </label>
    This shows a checkbox with at the right an image. Clicking on the image toggles the checkbox.
    wimb
    Last edited by wimb; Sep 28, 2008 at 03:20.

  3. #3
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the response..

    I really think that someone should try to clear this once and for all because some people believe this is possible (those giving me suggestions) and others not.

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check out http://customformelements.net/. I haven't tried it, but it looks fairly robust and should let you style any form element the way you want to.


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
  •