|
qtip-content background in CSS
|
|
25th August, 10:06
Post: #1
|
|||
|
|||
|
qtip-content background in CSS
I've just found myself wrestling with the qtip-content background, and how to control that through CSS instead of the JavasScript config. Well, I figured it out - though it wasn't the most obvious thing.
First thing I tried was setting the mystyle.background to false - hoping that then it wouldn't render any inline background styles, allowing my background declaration on .qtip-content to take over. This actually worked fine in Firefox and Chrome - but when trying to show the example to my client all I could do was send a screenshot. IE8 came up with a - not so nice - javascript error. Luckily they aren't as annoying anymore as they used to be in IE6 times. And now for the solution? Well, simply set background to 'inherit' and apply styles on qtip-contentWrapper. Works like a charm! Though I would like to suggest turning the 'false' option into a supported setting in qTip - I think I'd prefer that. |
|||
|
25th August, 13:40
Post: #2
|
|||
|
|||
|
RE: qtip-content background in CSS
The error is caused by the fact that false is not a supported value for the background property. Try using 'none' instead
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
25th August, 13:52
Post: #3
|
|||
|
|||
|
RE: qtip-content background in CSS
I did, actually!
none however did do exactly what id said. It applied the 'background: none' style, which is not what I wanted. What I wanted was not to render any inline background: style so that the CSS could completely take over. (btw, thanks for making a fantastic product) |
|||
|
25th August, 15:50
Post: #4
|
|||
|
|||
|
RE: qtip-content background in CSS
What about... background: 'none !important'? That should override inline styles IIRC.
And no problem at all! Glad to hear users appreciating it! ^_^ Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
25th August, 18:48
Post: #5
|
|||
|
|||
|
RE: qtip-content background in CSS
Yeah it should. But I don't like the !important declaration. It's like shouting, and I don't like that either - makes it hard to hear the other lines of CSS
![]() And I liked how Google Chrome (apparently without any intention of your code) decided to just not render any background: style on the element when I supplied false. null actually would make even more sense, as jquery accepts that to fx remove an attribute. For now I'll stick to 'inherit', makes second most sense to me. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| [Solved] curved edges with thin border or background graphic with text problem | JamesRadford | 2 | 1,449 |
11th September 09:12 Last Post: JamesRadford |
|
| Custom graphics/css for the tooltip looks | SuneR | 1 | 1,713 |
21st December 10:44 Last Post: Craig |
|
| Use hovered element's own HTML for qtip content | discern | 2 | 3,707 |
10th December 13:52 Last Post: discern |
|
| how can i use qtip corner as seperate pure css? | jimmy | 6 | 2,832 |
24th November 12:38 Last Post: jimmy |
|
| CSS used for Transparency/Opacity | BrendonKoz | 7 | 4,350 |
18th November 19:53 Last Post: smlong426 |
|
| Close a qTip from inside the tip content? | ChimneyMedia | 3 | 4,655 |
6th August 12:36 Last Post: Craig |
|
| Remove background color | root66 | 1 | 1,798 |
22nd June 14:15 Last Post: Craig |
|
| qTips with jQuery UI CSS and ThemeRoller | dfeeney | 3 | 3,280 |
5th May 12:24 Last Post: tipolosco |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




