G
Gabriel Gilini
Hi,
I've been working on a user-assistance product, and one of the
features is the ability to easily build contextualized tooltips.
They are DIV elements with its appearance changeable through a control
panel, and sometimes a css rule from the website that my script is
running in will overrule my tooltip css, making it look awful. One
thing that I could do is to append !important all over my stylesheet,
but that just feels crappy.
So, one of my partners suggested that we use IFRAME elements to build
the tooltips on. That way we could append the stylesheet to the IFRAME
document, making it 'immaculate', so to speak. My doubt here is: is
there anything wrong with that? I mean, frames in general are bad for
a number of reasons, but in a dynamically generated tooltip, would
there be any harm?
I'd really like to hear your thoughts on this one.
Thanks
I've been working on a user-assistance product, and one of the
features is the ability to easily build contextualized tooltips.
They are DIV elements with its appearance changeable through a control
panel, and sometimes a css rule from the website that my script is
running in will overrule my tooltip css, making it look awful. One
thing that I could do is to append !important all over my stylesheet,
but that just feels crappy.
So, one of my partners suggested that we use IFRAME elements to build
the tooltips on. That way we could append the stylesheet to the IFRAME
document, making it 'immaculate', so to speak. My doubt here is: is
there anything wrong with that? I mean, frames in general are bad for
a number of reasons, but in a dynamically generated tooltip, would
there be any harm?
I'd really like to hear your thoughts on this one.
Thanks