Grow your CSS skills. Land your dream job.

Bootstrap Static Popovers

  • # January 12, 2013 at 8:32 pm

    on this page. See the static popover examples at http://twitter.github.com/bootstrap/javascript.html#popovers.

    # January 12, 2013 at 8:32 pm

    I want to replace the paragraphs on the refer.php page with popovers containing the contact. Then I would list the cite reference below.

    # January 12, 2013 at 8:33 pm

    Actually no, I would include the reference as the popover title.

    # January 12, 2013 at 8:33 pm

    I mean on this page: http://www.debbierking.com/bootstrap/refer.php

    Where do you have the attempted popovers?

    # January 12, 2013 at 8:34 pm

    Hmmmmm. Basically I’m trying to figure out where you’re attempted code is.

    # January 12, 2013 at 8:35 pm

    Right under the Testimonials title.

    # January 12, 2013 at 8:38 pm

    All I see are paragraphs and links.

    Have you:

    a) included the necessary Bootstrap JS/CSS
    b) updated your markup with the code shown on the Bootstrap example page

    All I see is this: http://cl.ly/image/2w0e0e1X1K0V

    So I don’t know where your popover is supposed to occur.

    # January 12, 2013 at 8:42 pm

    That’s right…I don’t know why the popover isn’t displaying. I have used the code that I pasted above. I did include the bootstrap.css file…I don’t think I need any other css bootstrap files, as I didn’t need one for the accordion function.

    Can you view my source code on the refer.php page? You will see the popover code there…it should be showing up right under the header on the left-hand side of the page.

    # January 12, 2013 at 8:45 pm

    If we can’t figure this out soon I think I’m going to give up on the popovers…they are not necessary…just would look nice. I’d rather concentrate more on why the internal link isn’t working in Firefox.

    # January 12, 2013 at 8:48 pm

    Oohhhh. Are you supposed to hover over the ‘Testimonials’ title and see it?

    # January 12, 2013 at 8:51 pm

    No…maybe I am misunderstanding how this works….I *thought* from the example of static popovers on the Bootstrap page that they were just supposed to display with no clicking or anything. But nothing is showing up…I have been going round on this for a couple of days now.

    # January 12, 2013 at 8:58 pm

    Ooohhhh. They are meant to be initialized by something with JS.

    Yours isn’t showing because it’s set to `display: none;`. Having said that, you *shouldn’t* actually be writing any markup as it’s all done with the data attributes.

    So what you *could* do, using the ‘Testimonials’ title as our reference, is this:

    Testimonials

    JS:

    $(‘.your-toggle’).popover(‘show’);

    # January 12, 2013 at 8:59 pm

    I just tried the above on your site using Inspector and it worked perfectly.

    # January 12, 2013 at 9:08 pm

    I see…it’s showing up now (I thought the ‘show’ option was for clicking on a button to display the popover.

    I am now trying to figure out how to bring the title into the popover.

    I am noticing that when I add the popover for the second reference it replaces the first….I think I’m going to give up on this…thanks for trying to help me out though!

    # January 12, 2013 at 9:22 pm

    Am going with straight CSS to create the bubble. Thanks again Doc!

Viewing 15 posts - 16 through 30 (of 30 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".