Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] tip position when using global styles
2nd February, 21:02
Post: #1
[Solved] tip position when using global styles
Hi,
I have created a global style for a bunch of qtips when hovering over an image map.
Originally I created styles for each individual qtip then used a javascript switch/case in conjunction with the alt attribute on the map to show the correct qtip with the speech bubble tip pointing the right way.
With the global style the tip position is set in the style i.e
JS Code
$.fn.qtip.styles.myStyle = { 
    fontSize: '1em', 
	fontFamily: 'Arial',
	background: '#111111',
	color: '#b7b7b7',
	width: 250,
    padding: 10,
    textAlign: 'center',
 
    	border: {
         width: 5,
         radius: 5,
         color: '#111111'
      },
      tip: 'bottomMiddle',
      name: 'dark' // Inherit the rest of the attributes from the preset dark style
   }

this means that all tips will be at the same position (bottomMiddle)
Is there a way top put the tip positioning after the call for the global style
i.e.
JS Code
style: 'myStyle'
then
JS Code
tip: 'bottomMiddle',
??

Thanks
Find all posts by this user
Quote this message in a reply
2nd February, 21:12
Post: #2
RE: tip position when using global styles
Yup!
JS Code
style: {
	name: 'myStyle',
	tip: 'bottomMiddle'
}

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
3rd February, 09:17
Post: #3
RE: [Solved] tip position when using global styles
to the rescue again Craig, Thanks....I'll try that tonight!
Probably missed that in the documentation so thanks for your time.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Tip mimic property doesn't change with flip viewport position.method ikhan 2 15 Today 04:58
Last Post: ikhan
  [Solved] 6 built-in styles mspace 1 296 3rd December 15:37
Last Post: Craig
  [Solved] Cant seem to apply the styles yetanotherdeveloper 2 442 31st August 00:19
Last Post: yetanotherdeveloper
  styles and pointy position not working danbuntu 1 940 27th July 23:17
Last Post: Craig
  [Solved] beforeShow event - can't update the tip position to a new value byte_slave 4 1,206 1st April 22:14
Last Post: byte_slave
  [Solved] Position tip above middle. MCR 3 903 29th March 13:26
Last Post: MCR
  [Solved] Adjust tip position + holder tooltipnotmaster 2 726 23rd February 21:40
Last Post: tooltipnotmaster
  How to position the tip and arrow automatically just_a_kid 3 1,174 12th January 10:08
Last Post: Craig
  Global enabling/disabling on ajax sdelmastro 1 394 2nd August 12:07
Last Post: Craig
  [Solved] Add styles to outer modal box, but not to qTips?? pavsid 4 1,777 4th July 14:41
Last Post: Craig



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