DEV Community

Discussion on: Tooltip using only CSS

Collapse
 
peterpeartree profile image
PeterPeartree

Hi Rajiv

Great post as I was asked to add a tooltip by a client, and was thinking JavaScript etc.

You've shown two CSS declarations above. Do I need to add both of these to the stylesheet, or can they be merged into one?

Collapse
 
thoughtlessmind profile image
Rajiv

Thank you very much for your appreciation.
For the tooltip, responsible CSS are those which starts with [data-customTooltip] . Rest CSS there are for other stylings...