SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form inside tooltip - is it good standards?

    I want to place a form inside a tooltip, but CSS-only tooltips are something like this:

    <a>Anchor<span>Tooltip content here</span></a>

    ...which of course would be this:

    <a>Anchor<span><form>form content</form></span></a>

    ...which works, but apparently isn't good standard.

    What do I do?

    I want to put any HTML, including <div>'s in the tooltip.

  2. #2
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    You can with the :target selector.

    I created an experimental CSS3-only lightbox the other day with a form. You can have a look at the example and see if you can do something with it:

    Demo: http://lab.rockatee.com/temp/css-lightbox.html
    Maleika E. A. | Rockatee | Twitter | Dribbble



  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,118
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Nice example, Maleika. Here are some others I have bookmarked:

    http://www.thecssninja.com/demo/futurebox/v3/
    http://downloads.sixrevisions.com/cs...ox/source.html
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


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
  •