DEV Community

Cover image for Cool tooltips designed using only CSS
Raksha for Canopas Software

Posted on


Cool tooltips designed using only CSS

Beautify your tooltips with customized arrows.

Do you know how to design tooltips using only CSS?

In the UI design, we often need to show limited information using images or icons. On hovering over it, we can show more information using tooltips.

This article will guide you to design different types of tooltip arrows using pure CSS. We will draw arrows on pseudo-selectors like :before and :after with the absolute position using only CSS.

We will draw below shapes for the tooltips.

  • Triangle
  • Right triangle
  • Curved
  • V-curved
  • Circled

For implementation details, check out our Blog.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.