"Aaron Gray" <> wrote:
>I want an "isZZZ" variable that I can use to generate
>"display: -moz-inline-box;" rather than "display: inline-block;" but in DOM.
>
>For this I need to know what version of Mozilla this "feature" was added and
>also how to detect Mozilla as a userAgent.
>
>Alternatively is there an alternative to "display: -moz-inline-box" for
>sticking two tables side by side ?
I'd code a cross browser solution and forget about UA sniffing.
The correct CSS value to use is "inline-table", unfortunately like
"inline-block", "inline-table" is another long standing deficiency in
Mozilla's CSS support. (I'm guessing there's something in Mozilla's core
code that prevents such from working)
I'd suggest never to use "-moz-inline-block" for anything as the result
is terrible, nothing like "inline-block".
The following works in IE, Mozilla and Opera if you don't use a border
around the table element and if you are not fussy about vertical-align:
yourvarname.style.display = 'inline';
yourvarname.style.display = 'inline-table';
--
Spartanicus
|