Foundation CSS Tooltip Right and Left
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails to look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on Saas-like bootstrap. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so it’s easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices.
A Tooltip is a small text or sometimes a word that appears when the user moves the mouse over a particular word or a particular button or control in the website. Foundation CSS has multiple tooltip variations such as Tooltip top, Tooltip clicking, Tooltip left, and Tooltip Right. In this article, we will learn about the Tooltip left and right.
Tooltip left and right is used to position the tooltips to the right and left of the word. To use Tooltip left and right in the Foundation CSS, we use the “left” and “right” classes. The left and right classes position the tooltip to the left and right of <span> respectively.
Foundation CSS Tooltip left and right Classes:
- left: The left class is used to position the tooltip to the left of the <span>.
- right: The right class is used to position the tooltip to the left of the <span>.
<span data-tooltip class="left/right" tabindex="1" title="...">...</span>
Example 1: This example demonstrates the Right Tooltip variation in different elements.
Example 2: This example demonstrates the Left Tooltip variation in different elements.