I have implemented qTip2 on my website but I am experiencing some CSS issues.
The following files have been included:
jquery.qtip.min.js jquery.qtip.min.css
In the JavaScript file, I have added the code snippet below:
$.each($(".tooltip"), function (i, val) {
var theContent = $(val).html();
$(val).qtip({
content: {
text: theContent
},
position: {
my: "bottom left",
at: "top right",
viewport: $(window)
},
show: {
event: false,
ready: true
},
hide: {
effect: function () { $(this).slideUp(5, function () { $(this).dequeue(); }); }
},
style: {
classes: "ui-tooltip-shadow ui-tooltip-jtools"
}
});
});
While this setup is working fine, I need to customize it by extracting the jtools styles from jquery.qtip.css and placing them in my own CSS file like so:
.ui-tooltip-shadow { box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15); } .ui-tooltip-MySite { background: #232323; /* More styling rules */ } /* Rest of CSS */ In the tooltip declaration, I changed: <code>classes: "ui-tooltip-shadow ui-tooltip-jtools"
toclasses: "ui-tooltip-shadow ui-tooltip-MySite"
Despite these changes, the content still appears with the default yellow color. Why is that happening?