I've looked all around the world wide internet web system database... and I can't seem to find a solution.
Basically, I'm trying to show some display: none Divs through facebox. As usual and expected, it works flawlessly in FF. And as usual and expected, the divs aren't displaying in IE. In Safari and Opera, too, as a matter of fact.
Anyone know a way around this? I could try Thickbox I suppose... but I don't know if there is the same problem?
In order for a hidden div to be displayed in IE\Opera\Safari, you have to do an inline style, style="display: none;" and NOT in the css file. Makes no sense to me, but it works.
So to sum up... Inline style only... Using the inline style and in the CSS will not work.
Javascript's display function in essence applies an inline style to the element. So it will replace a conflicting inline style if it already exists. It can't replace the style if it's located in an external style sheet.... and apparently that takes precedence in those browsers.
Basically, I'm trying to show some display: none Divs through facebox. As usual and expected, it works flawlessly in FF. And as usual and expected, the divs aren't displaying in IE. In Safari and Opera, too, as a matter of fact.
Anyone know a way around this? I could try Thickbox I suppose... but I don't know if there is the same problem?
Thanks.
Is that how Facebox is supposed to work: to show display:none divs?
And it does, in FF. In the other big 3? No for some reason.
I might try Thickbox and be done with it... :<
You said you were trying to display divs that were display none. Did you try instead displaying external HTML pages?
In order for a hidden div to be displayed in IE\Opera\Safari, you have to do an inline style, style="display: none;"
and NOT in the css file. Makes no sense to me, but it works.
So to sum up... Inline style only... Using the inline style and in the CSS will not work.
Javascript's display function in essence applies an inline style to the element. So it will replace a conflicting inline style if it already exists. It can't replace the style if it's located in an external style sheet.... and apparently that takes precedence in those browsers.