Thank you Morganize, I'm 'a give it a shot today.
On Jan 26, 5:54 am, MorganizeIT <morganiz...@gmail.com> wrote: > When I need to do this I set the inline style to an empty string which > restores whatever value is defined in CSS. That way I don't have to > keep track of the original style of the element before I overrode it. > In your case, this would look like: > > $$('E.targeted').setStyle('display',''); > > Cheers, > Morgan. > > On Jan 25, 12:48 pm, nwhite <changereal...@gmail.com> wrote: > > > > > If you need the rule for a specific browser you might try using User Agent > > detection. If you can find a specific difference in the DOM that would be > > better. > > > if(Browser.Engine.gecko && Browser.Engine.version < 1.9){ > > $$('E.targeted').setStyle('display','-moz-inline-box'); > > > } > > On Sun, Jan 25, 2009 at 12:23 PM, rpflo <rpflore...@gmail.com> wrote: > > > > Hey there, > > > > So I've got a bunch of elements that have the CSS: > > > > .E { > > > display: -moz-inline-box; > > > display: inline-block; > > > } > > > > Then I've got some interface pieces that hide some of these by: > > > > $$('E.targeted').setStyle('display','none'); > > > > Then when I show them again I can do this: > > > > $$('E.targeted').setStyle('display','inline-block'); > > > > I can't seem to figure out how to set the display to -moz-inline-box > > > to accommodate for mozilla 1.8. > > > > I tried using addClass, removeClass instead of setStyle but then the > > > elements don't fall off the page like they do with setStyle. I've got > > > some navigation that depends on getNext() and getPrevious() and > > > they're getting elements that are hidden, unline setStyle. > > > > Thanks for any insight.