Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to style/theme tooltip?
24th June, 14:27
Post: #1
How to style/theme tooltip?
Hey guys,

I have installed this plugin and went through the documentation. Found the HTML structure of a tooltip, which is great help. I have also noticed which classes I should be updating, which was also great help. However, eventually I have noticed that there were inline css styles in the generated tooltip, which makes all above absolutely useless. So my question is - how do i get rid of those inline css styles for .qtip-content? Ideally, get rid of all inline css styles (apart from those important, like position, z-index, etc...)?
Find all posts by this user
Quote this message in a reply
26th June, 12:25
Post: #2
RE: How to style/theme tooltip?
Put simply - you can't. qTip1 uses a styles object that allows you to apply inline styles to all of elements within:
JS Code
style: {
	content: {
		padding: 10
	},
	title: {
		fontSize: 20
	}
}

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
26th June, 12:28
Post: #3
RE: How to style/theme tooltip?
Ouch...
Find all posts by this user
Quote this message in a reply
26th June, 12:37
Post: #4
RE: How to style/theme tooltip?
Yup... exactly why I changed to standardised stylesheets in qTip2 Smile Upgrading is definitely recommended, but if you're stuck with qTip 1.0, you can override inline styles using the !important tag:
CSS Code
.qtip-content{
	width: 200px !important;
}

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] IE 8 "Style > Tip" not displaying shameless hacker 30 8,974 9th February 18:49
Last Post: nickast
  [Solved] Style font-size verlager 2 1,328 30th March 04:01
Last Post: verlager
  [Solved] My style and position hizard 3 811 13th January 16:47
Last Post: Craig
  Safari CSS Style not showing inside qtip tonyabra 1 1,682 20th December 19:34
Last Post: Craig
  Style Title not working for font-size and font-family ForgotMyOrange 2 1,984 19th December 21:50
Last Post: ForgotMyOrange
  [Solved] Changing content font-style. acuariano91 3 934 3rd November 20:49
Last Post: Craig
  [Solved] Can you set a preset style when pulling html? adolfo 1 590 3rd November 02:09
Last Post: Craig
  Tip not taking the "dark" style acc 1 749 26th October 23:58
Last Post: Craig
  [Solved] 1.0.0pre ignoring style attribute jamesc 4 873 11th August 08:20
Last Post: jamesc
  [Solved] qTip Content: Background-image 'style' not being included bigorangemachine 1 2,044 17th June 20:50
Last Post: bigorangemachine



User(s) browsing this thread: 1 Guest(s)