Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What tag types does twipsy work with? #904

Closed
andrewknightley opened this issue Jan 6, 2012 · 3 comments
Closed

What tag types does twipsy work with? #904

andrewknightley opened this issue Jan 6, 2012 · 3 comments

Comments

@andrewknightley
Copy link

Hi All,

I'm trying to use twipsy on <div> and/or <p> tags. At the moment I can only get it to work on <a> tags
i.e
<a href="#" rel='twipsy''>twipsyanchor</a>

works fine and the twipsy box appears on hover.

This however wont work......
<p rel='twipsy'>twipsyparagraph</p>

Is this standard or am I doing something wrong?

Basically I just need confirmation of which tags twipsy works with and if there is anything special that needs to be done to make it work with anything but links.

Thanks in advance.

@fat
Copy link
Member

fat commented Jan 6, 2012

don't use rel on p tags. Just target things by class or something else.

<p class="foo">asdfasfd</p> then $('.foo').twipsy()

@fat fat closed this as completed Jan 6, 2012
@andrewknightley
Copy link
Author

Thanks for the reply Jacob.
I sussed that I wasnt adding a title attribute to my tags and this caused the twipsy to not appear because by default the content body of the twipsy is hidden. If you omit the title tag then there is nothing to display.
I went for the popover instead, it suited my needs better.

Cheers,
Andrew

@fat
Copy link
Member

fat commented Jan 9, 2012

cool - glad to hear you got it working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants