javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -
i have not tryed since can't understand space between tooltip , element made/added bootstrap, tooltip near element triggers tooltip event.
i make tooltip opening little bit away element, add more margin tooltip , eleemnt mean.
i understand how in css if possible , if possible make both right,left,top,bottom tooltips
hope question clear.
this how tooltips looks on app:
and , how should looks after
this default css tooltip on top :
.tooltip.top { padding: 5px 0; margin-top: -3px; }
you can override in own css :
.tooltip.top { margin-top: -10px; }
note code work work tooltip on top, you'll nedd adapt css 3 other orientations :
.tooltip.top { margin-top: -10px; } .tooltip.right { margin-left: 10px; } .tooltip.bottom { margin-top: 10px; } .tooltip.left { margin-left: -10px; }
Comments
Post a Comment