The Tooltip has become a common resource and is used by all the major sites to describe a link or give more help and information on a sectio...
The Tooltip has become a common resource and is used by all the major sites to describe a link or give more help and information on a section of text.Often when using Google products you will see a small question mark that you can hover over to see a pop up with more information.I covered tooltips before using html, javascript and images to create the actual pop up.In this post however i have a really cool way to have tooltips on your blog using just Css.If your not too savy when it comes to this sort of thing, basically this is much easier, much faster to load and presents less chance of errors.
The Demo
The words that have tooltips attached have a grey background, when hovered over the tooltip appears with a small question mark beside the cursor.
Add The Pure Css Tooltips To Your Blog
To use the tooltips on your blog you need to first add the Css to your template, we will add it via the template designer so its very easy.You then just add some tags around the words or sentences you want to have tooltips.This works across the browsers, although IE wont have the transparent effect on the actual tip it still looks great.
Add the Css to your blog
Step 1. In your Blogger dashboard click > Design > Template Designer :
Step 2. In the template designer click > Advanced > Add Css > :
Step 3. Copy and paste the following code into the section with 'Paste Code Here' in image above :
Note - The highlighted sections are the colors of the tooltips and can be changed to suit your blog.See some color options here - Color Chart.
Step 4. Click apply to blog in the top right of your screen to save, we now have the Css in place to create the tooltip next we will see how to add the tool tip to text.
Adding the tooltip to text
When writing a post and you want to add a tool tip to some text you do it as shown below :
So on the demo page you seen the first tooltip is coded like this :
That's a Css only Tooltip, credit goes to Red Team Design.
No comments:
Post a Comment