
- W3.CSS Tutorial
- W3.CSS - Home
- W3.CSS - Overview
- W3.CSS - Environment Setup
- W3.CSS - Containers
- W3.CSS - Code Coloring
- W3.CSS - Cards
- W3.CSS - Responsive Design
- W3.CSS - Grids
- W3.CSS - Forms
- W3.CSS - Buttons
- W3.CSS - Tooltips
- W3.CSS - Modal Dialog
- W3.CSS - Tables
- W3.CSS - Lists
- W3.CSS - Images
- W3.CSS - Icons
- W3.CSS - Colors
- W3.CSS - Navigation
- W3.CSS - Utilities
- W3.CSS Useful Resources
- W3.CSS - Quick Guide
- W3.CSS - Useful Resources
- W3.CSS - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
W3.CSS - Tooltips
W3.CSS supports a different kind of tooltip using w3-tooltip class. Take a look at the following example. Here we've put a tooltiptext within a div and an image and applied w3- tooltip on the parent div.
<div class = "w3-tooltip"> <div class = "w3-text w3-container w3-teal" style = "width:255px;"> <p>Learn HTML5 in simply easy way @TutorialsPoint.com</p> </div> <div> <img src = "html5-mini-logo.jpg" alt = "html5"> </div> </div>
Example
w3css_tooltips.htm
<html> <head> <title>The W3.CSS Tooltips</title> <meta name = "viewport" content = "width = device-width, initial-scale = 1"> <link rel = "stylesheet" href = "https://www.w3schools.com/lib/w3.css"> </head> <body class = "w3-container"> <h2>Hover Demo</h2> <div class = "w3-tooltip"> <div class = "w3-text w3-container w3-teal" style = "width:255px;"> <p>Learn HTML5 in simply easy way @TutorialsPoint.com</p> </div> <div> <img src = "html5-mini-logo.jpg" alt = "html5"> </div> </div> </body> </html>
Result
Verify the result.
Advertisements