Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > hack for mozilla browsers?

Reply
Thread Tools

hack for mozilla browsers?

 
 
Jerry
Guest
Posts: n/a
 
      02-14-2004
Hi all,

does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox, Mozilla
Suite, Netscape) will obey the definitions and not IE or Opera?

THANKS,
Jerry
 
Reply With Quote
 
 
 
 
Michael Wilcox
Guest
Posts: n/a
 
      02-14-2004
Jerry <> wrote:
> does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox,
> Mozilla Suite, Netscape) will obey the definitions and not IE or
> Opera?


You can hide things from certain browsers:
http://w3development.de/css/hide_css_from_browsers/
--
Michael Wilcox
mjwilco at yahoo dot com
Essential Tools for the Web Developer - http://mikewilcox.t35.com


 
Reply With Quote
 
 
 
 
Toby A Inkster
Guest
Posts: n/a
 
      02-14-2004
Jerry wrote:

> does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox, Mozilla
> Suite, Netscape) will obey the definitions and not IE or Opera?


The general way to hide from IE is to use advanced CSS selectors that IE
can't understand, but if you want to also hide from Opera you're going to
have trouble, as Opera is pretty damn good at CSS.

Try this one for size:

http://www.goddamn.co.uk/tobyink/scratch/hack

Whither the bill?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Leif K-Brooks
Guest
Posts: n/a
 
      02-14-2004
Toby A Inkster wrote:
> http://www.goddamn.co.uk/tobyink/scratch/hack


Black in Mozilla 1.6.

--
$_=" 5_2 8_2\n 3/*3 \\ 4/*3 \\\n / *7\\/*7 \\\n| *17 |\n \\ *15 /\n 3".
"\\ *11 /\n 5\\ *7 /\n 7\\ *** /\n 9\\*/";while(/(.)([0-9]*)/gs){print$1
x($2||1)}print"\n"
 
Reply With Quote
 
A Hess
Guest
Posts: n/a
 
      02-14-2004
Somewhere around 2/14/04 8:10 AM, Jerry typed wildly with reckless abandon:

> Hi all,
>
> does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox,
> Mozilla Suite, Netscape) will obey the definitions and not IE or Opera?
>
> THANKS,
> Jerry


I found this a while ago:

style {
IE styles go here;

/*
then there's this snippet that IE sees the closing curly, but others
dont, so everything below it is hidden from IE, but not other browsers
*/
voice-family: "\"}\"";
voice-family:inherit;

Moz, etc. styles go here;
}

I'm not exactly sure what exactly makes it work, but it works for
everything I've used it for.
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      02-14-2004
Leif K-Brooks wrote:

> Toby A Inkster wrote:
>> http://www.goddamn.co.uk/tobyink/scratch/hack

>
> Black in Mozilla 1.6.


Hmph. Right you are. Damn CSS parsing improvements.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      02-14-2004
A Hess wrote:

> /*
> then there's this snippet that IE sees the closing curly, but others
> dont, so everything below it is hidden from IE, but not other browsers
> */


Not entirely true. Opera below version 7 sees the same as IE in this hack,
but Opera 7.x sees the same as Mozilla. So it's not quite was the doctor
ordered.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Jerry
Guest
Posts: n/a
 
      02-15-2004
On 2004/02/14 20:08 A Hess said the following:

> I found this a while ago:
>
> style {
> IE styles go here;
>
> /*
> then there's this snippet that IE sees the closing curly, but others
> dont, so everything below it is hidden from IE, but not other browsers
> */
> voice-family: "\"}\"";
> voice-family:inherit;
>
> Moz, etc. styles go here;
> }



Any difference between this IE hack and

html>body ?
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      02-15-2004
Jerry wrote:

> does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox, Mozilla
> Suite, Netscape) will obey the definitions and not IE or Opera?


Just when you thought it was safe to go back in the water...

http://www.goddamn.co.uk/tobyink/scr...hack/hack.html

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Woolly Mittens
Guest
Posts: n/a
 
      02-15-2004
"Jerry" <> wrote in message
news:c0lh9s$1tq$04$...
> Hi all,
>
> does anybody know a hack for CSS, so only Mozilla (Firebird, Firefox,

Mozilla
> Suite, Netscape) will obey the definitions and not IE or Opera?


html>body .mydefinition {
/* MSIE doesn't see this */
}


 
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
Mozilla pieces versus Mozilla Suite Doug Chadduck Firefox 40 02-12-2006 10:27 PM
Windows Media opening outside Mozilla not in a Mozilla Window Jim Firefox 3 12-17-2005 02:00 AM
Valid XHTML strict autocomplete workaround/hack for IE and Mozilla Kenn White Javascript 4 08-23-2004 06:50 AM
My CUSTOM Versions Of Mozilla Fiorefox & Mozilla Thunderbird Norvin Adams III Firefox 6 07-13-2004 03:26 PM
mozilla 1.5 from mozilla 1.4 Disco Firefox 6 11-07-2003 04:34 PM



Advertisments