I am trying to set different widths for different tooltips. I have a tooltip on hyper link and a tooltip on h1 element. For hyperlink i have large text so I need the width of the tool tip to be large but for h1 element default width is fine.
When I am trying to overwrite the css as below all the tool tips are getting affected. Is there a way to give the width of a tooltip inline to the element on which the tooltip is applied
.tooltip-inner {
max-width: 350px;
width: 350px;
}
I tried to add two separate tooltip inner styles in the css as a.tooltip-inner and h1.tooltip-inner with different widths but its not taking effect
JSFiddle link http://jsfiddle.net/vinaybvk/qr1cbu92/
Is there any other way to achieve this.
Thanks.