A basic css-only tooltip

These are some basic tooltips using only css, they are very basic so only use them for simple effects

Limitations:

  • only a single line is displayed as a tooltip
  • the tooltip is always aligned to whatever you define so might go off the screen
  • It does not work on special html elements linke <input>, <img>, ...

Placed on the left

Placed on the bottom

Placed on the right