Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Mozilla / (Geko ?) test and "display: -moz-inline-box"

Reply
Thread Tools

Mozilla / (Geko ?) test and "display: -moz-inline-box"

 
 
Aaron Gray
Guest
Posts: n/a
 
      01-04-2007
Hi,

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 ?

Many thanks in advance,

Aaron


 
Reply With Quote
 
 
 
 
Spartanicus
Guest
Posts: n/a
 
      01-04-2007
"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
 
Reply With Quote
 
 
 
 
Aaron Gray
Guest
Posts: n/a
 
      01-04-2007
I used :-

table.style.display = "inline";

in the end. Seems to work fine.

Could not seem to get DOM to work with styles and classes at all.

Aaron


 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      01-04-2007
"Aaron Gray" <> wrote:

> table.style.display = "inline";
>
>in the end. Seems to work fine.


They say that ignorance is bliss.

>Could not seem to get DOM to work with styles and classes at all.


We can't help if you don't show us the problem.

--
Spartanicus
 
Reply With Quote
 
Aaron Gray
Guest
Posts: n/a
 
      01-04-2007
"Spartanicus" <> wrote in message
news:...
> "Aaron Gray" <> wrote:
>
>> table.style.display = "inline";
>>
>>in the end. Seems to work fine.

>
> They say that ignorance is bliss.
>
>>Could not seem to get DOM to work with styles and classes at all.

>
> We can't help if you don't show us the problem.


No, I have avoided the prolem for now. The project is pre-alpha at the
moment, but I suppose I could given an example. Sorry. I may do when I get
some more time.

Thanks for your help,

Aaron


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
test test test richard Computer Support 3 01-24-2007 05:18 AM
TEST TEST Test...Blah Blah Blah generalbatguano@pacbell.net Computer Support 2 09-15-2006 03:47 AM
TEST TEST Test...Blah Blah Blah Generalbatguano@pacbell.net Computer Support 6 09-13-2006 01:53 AM
TEST TEST TEST Gazwad Computer Support 2 09-05-2003 07:32 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57