kazzkiq / balloon.css

Simple tooltips made of pure CSS
https://kazzkiq.github.io/balloon.css/
MIT License
5.03k stars 448 forks source link

Set width dynamically #139

Closed vasyl-shumskyi closed 4 years ago

vasyl-shumskyi commented 4 years ago

Not sure if its possible with css, but it would be really cool if we can set width dynamically without adding it to balloon css file.

Like so:

data-balloon-length="100px" 
kazzkiq commented 4 years ago

Sadly, as far as I know width cannot have attr() values, so it is not possible.