1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Pop up box

Discussion in 'jQuery' started by Rub3X, Nov 9, 2015.

  1. #1
    http://www.jacobtomlinson.co.uk/2012/09/11/ajax-database-tooltip/

    I followed that tutorial successfully but the pop up box is ugly and does not go away after clicked. I'd like to stylize the qTip box a little bit. I'm trying to get the pop up box that looks like "AJAX'd HTML" on this page:

    http://qtip2.com/demos

    I am using the code in the original link, can anyone instruct me how to make it look like the AJAX'd HTML pop up in the second link's demo page?
     
    Rub3X, Nov 9, 2015 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    While I like pure-css tooltips, they're not always the right solution. First, you need to know the size of the item needing the tooltip (and, to some extent, the position) - if you change all the px-values to dynamic ones, you'll start experiencing issues as soon as something on the page changes - issues which you won't have with javascript positioning. I'd say use CSS as a starting point/fallback, but use js for proper positioning in responsive designs.
     
    PoPSiCLe, Nov 9, 2015 IP