balloon.css tooltips example

The original css is from:https://github.com/kazzkiq/balloon.css
First, link the balloon.css to your head,and basic main.css.Design the layout of your website,like me. 

I make the DOM body>.main>.container>.pos>h2+button
                                                                >.len>h2+button
                                                                >.icon>h2+button
css is  basic style, you can use whatever you like.
Because of the font-awesome icon class .f, the button is different with others.To keep it look great,I restyle the .fa class css. 

For positioning, use data-balloon-pos attribute with one of the values: updownleft or right.
By default, tooltips will always remain single-line no matter their length. You can change this behavior by using the attribute data-balloon-length with one of the values: smallmediumlarge or fit.
You can also add any HTML special character to your tooltips, or even use third-party Icon fonts:
I link to font Awesome, and choose a diamond http://fortawesome.github.io/Font-Awesome/icon/diamond/ 
Download the example here: http://pan.baidu.com/s/1mhHq4dE

Popular posts from this blog

Fancyapps — easily build overlay windows with carousel

Meet Mantine: A TS-Based Open-Source React Components Library

Meet Tippy.js: The Complete Tooltip Popover Plugin