Webmaster Webdesigner Creator of projects

  • Blog
  • Who am I?
  • Contact Live

A bubble of info on CSS links

Here's how to set up information bubbles in CSS. These bubbles have the same style as those websnapr This website takes screenshots of applications it receives, then it stores in a database. They have a height and width fixed, which limits the number of characters to insert.

Here is an example of these bubbles

What a delicious body composition is a graphic chart that follows and you never know what you will.?

example of information bubble Here's what the PNG image to create this information bubble looks like. This preview was taken directly in photoshop.

Click here to download the real image

Now, here is the code to create this information bubble

HTML

 <a href="votreDestination" class="info"> The name of your link <span> description of your link with a maximum of 130 characters in this case if </ span> </ a> 

The CSS


 a. info (
     position: relative; / * Very important * /
     background: none; / * Important for functioning on IE * /
     z-index: 10;
 )

 { a. Info: hover (
     z-index: 20;
 )

 a. info span (
     display: none;
 )

 span { /*la tag SPAN apparaitra avec l'effet hover*/ a. Info: hover span (/ * SPAN tag will appear with the hover effect * /
     display: block;
     position: absolute;
     top: 18px;
     left: 10px;

     / * Elements to position the text in the bubble * /
     / * You can also use padding: 24px 8px 5px 25px; * /
     padding-left: 25px;
     padding-top: 24px;
     padding-bottom: 5px;
     padding-right: 8px;
     width: 205px;
     height: 45px;

     / * Style character in the bubble * /
     ; font-family: Arial, Helvetica, sans-serif;
     font-weight: normal;
     font-style: italic;
     font-size: 10px;
     ; color: # 999999;
     text-decoration: none;
     text-align: justify;
 )

 / * For a beautiful background of bubbles with PNG transparency * /
 >span { a. Info: hover> span (
 images/bgInfo .png ) ; background-image: url (images / BGInfo. png);
 )

 span { a. Info: hover span (
 ( src= "/images/bgInfo.png" , filter: progid: DXImageTransform. Microsoft. AlphaImageLoader (src = "/ images / bgInfo.png"
 ; sizingMethod = 'crop');
 )

Well, I hope that with this tutorial you will be able to create this bubble effect to 2.0. If you have any questions, feel free to ask on our forum. Good luck!

  • Share / Bookmark

Tags: Bubble Info, CSS, links, tutorial

This article was published Friday, February 8, 2008 at 12:42 and is filed under Tutorials. You can follow comments through the RSS 2.0 feed. You can leave a comment or a trackback from your own site.

20 comments for "A bubble info in CSS on links"

  1. Fabien said:
    February 9, 2008 at 0:07

    Interesting, I thank you bookmark the tip!

  2. Jeanviet said:
    February 9, 2008 at 0:09

    Super convenient this tutorial ... I'm trying it tonight!
    If it works, I add you a mark (tutmarks.com) immediately

  3. Keo says:
    February 9, 2008 at 0:10

    Pity the height does not take into account the content and limiting the use of this balloon friendly a design point of view.

  4. Patrick Perron said:
    February 9, 2008 at 0:11

    It is great to adjust the height according to the text, but it requires more lines of code for that. The code is as simple as possible. But I intend to make a more complex version with automatic adjustment.

  5. Keo says:
    February 9, 2008 at 0:13

    It's a good thing for an object to be used by as many people as possible, we must curb the least possible (easier said than done:)).
    Bravo for your work

  6. el3ph4nt said:
    February 9, 2008 at 0:13

    very nice, very clear, very well

  7. Stouky said:
    February 9, 2008 at 0:15

    tuto is really beautiful thank you beaucaup has its author

  8. Furious said:
    February 9, 2008 at 0:15

    Wonderful, thank you.

  9. fitiwizz said:
    March 28, 2008 at 8:12

    Perfect!
    The only problem for me is that even with text-decoration: none; I inside the bubble is highlighted by a stroke of the same color as the link (visited or not)

  10. admin said:
    March 28, 2008 at 12:39

    Test a border: 0px; or make one! Important line in your text-decoration: none ...

    Example:

    text-decoration: none;

  11. fitiwizz said:
    March 29, 2008 at 9:35

    No neither of these works, most of the bubble is cut at the edge of my container, even with a z-index of 20 on the bubble and 2 on the container.

  12. admin said:
    March 29, 2008 at 20:50

    Can you give me the URL so I can see your code?

  13. fitiwizz said:
    March 30, 2008 at 6:59

    The site is normally only locally but I put a truncated version online: xttp: / / xxxxxxx.xxx / claims /
    You can click directly on "connection", then left on "guaranteed" then you have an example of the bubble on the right page on the link to the phone.
    Thank you for your help;)

  14. admin said:
    March 31, 2008 at 15:30

    I looked at the problem of your tooltips in your CSS that cause problem is the overflow-y: auto; in the class. Home

    I removed it and it seems to work well if you put an overflow, all that is found in the tag will not overflow and will end up hidden.

    I hope that my answer to your problem.

    Good day!

  15. chupweb said:
    July 17, 2008 at 7:55

    Genial your tutorial, but is it possible to get this balloon on a picture? I tried, but the tooltip gets in the picture while I put it to the bottom right ... Is that possible?
    Thank you

  16. Albertos said:
    October 20, 2008 at 11:25

    Hello, super tutau, but I have a bar menu with ul and li and so I wanted to use the info bubble, but it is cut when it appears! So I do not see a game!

  17. jluc said:
    October 26, 2008, 15:04

    thanks

  18. Herve says:
    October 30, 2008 at 8:14

    Hello,

    how to put the bubble (with another bubble in the other direction) above the link text, like facebook in the bar at the bottom please?

    Thank you ...

    Heve

  19. Fakher said:
    November 6, 2008, 12:48

    coooooooooooool!! thank you

  20. martin says:
    December 17, 2008 at 12:06

    (subject - display bubble)

    Hello
    Is it possible to put the link to an image map?

    thank you and the great tutorial!
    good day!

Leave a comment

  • Translator

    French flagItalian flagEnglish flagGerman flagSpanish flagRussian flag   
    By N2H
  • My Categories

    • Tips (1)
    • Discovery (4)
    • My Projects (1)
    • My Achievements (1)
    • Google News (1)
    • Staff (2)
    • Tutorials (5)
    • Utilities (3)
Get Adobe Flash player Plugin by wpburn.com wordpress themes

  • Links
    • Color Scheme Generator
    • CSS Mania
    • Hotscripts.com
    • Joomla! En
    • Web Rank Info
    • Wordpress
  • My Domain Names
    • jelefais.com
    • karinevanasse.biz
    • karinevanasse.net
    • karinevanasse.org
    • lagrandecite.com
    • quebecphone.com
    • ubergate.com
    • ubergates.com
    • viewpc.com
  • My Projects
    • Free Goal Setting
    • Nubium Graphik
    • Nubium Test
    • Reach Out To Humanity
  • Partners
    • Fishing Adventures with Cyril Chauquet
    • Kinologik
    • The Blog of Lana Prane
    • OÏO - Film Simon Goulet
    • Sign Your Life
    • Sign your life
    • Tutmarks