Default (right side)
This is the tooltip
The markup for tooltips is:
<div class="has-tooltip">
... some content
<div class="tooltip">This is the tooltip</div>
</div>
.left
, .top
, .bottom
: to choose the side for the tooltip.main
, .alt
, .ok
, .warning
, .error
white-space:nowrap
. You must ensure the content is properly layed out (using BR or similar)..has-tooltip
) will have display: inline-block
(so that the tooltip can show next to it). Be careful if you change this property, or the tooltip might appear in odd positions.This paragraph has a tooltip that has complex HTML inside
Tooltips can have pretty much
any content you want.
Just make sure to break lines often.
Yep, no problem using
complex HTML in a tooltip
This paragraph has a tooltip that has a very long line