/    Sign up×
Community /Pin to ProfileBookmark

Tooltips get cut off on the left side

The tooltip width exceeds the browser width and when you mouse over the word that contains a tooltip, the tooltip isn’t visible because it’s too wide for the screen. I tried setting the width of the tooltip to 100% but that made the width too narrow. I don’t know how to fix this.

I created a pen here:
https://codepen.io/makamo66/pen/QWgqmQB?editors=1100

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@makamo66authorSep 14.2021 — I meant they get cut off on the left side not the right side! I want to edit my post but I don't know how to do that.
Copy linkTweet thisAlerts:
@SempervivumSep 15.2021 — This can be fixed by using a library like tooltipster. It will size and position the tooltip in an intelligent way so that nothing is cut off.
Copy linkTweet thisAlerts:
@SempervivumSep 15.2021 — ["Tooltips get cut off on the right side","Tooltips get cut off on the left side"]
Copy linkTweet thisAlerts:
@SempervivumSep 15.2021 — @makamo66#1637032 I edited the title.
×

Success!

Help @makamo66 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...