SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    338
    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
    23,622
    Mentioned
    413 Post(s)
    Tagged
    7 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


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
  •