HighDots Forums  

Is there any way to define style rule which will work for Opera butnot for Firefox ?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Is there any way to define style rule which will work for Opera butnot for Firefox ? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
marss
 
Posts: n/a

Default Is there any way to define style rule which will work for Opera butnot for Firefox ? - 04-30-2008 , 04:04 AM






I have an application which has to be rendered correctly in Firefox
and Internet Explorer. In order to distinguish css rules for these
browsers I use following approach:

*width:16px; //works for IE only, not work in Firefox.

Now I want to add Opera support. I found a hack how to add styles for
Opera that are not visible for IE:

w\idth:16px; //works for Opera, not work in IE.

But this style rule is also visible for Firefox
Is there any way to define style rule which will work for Opera but
not for Firefox ?

Thanks,
Mykola
http://marss.co.ua


Reply With Quote
  #2  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Opera but not for Firefox ? - 04-30-2008 , 05:46 AM






On Wed, 30 Apr 2008 11:04:30 +0200, marss <marss.ua (AT) gmail (DOT) com> wrote:

Quote:
I have an application which has to be rendered correctly in Firefox
and Internet Explorer. In order to distinguish css rules for these
browsers I use following approach:

*width:16px; //works for IE only, not work in Firefox.

Now I want to add Opera support. I found a hack how to add styles for
Opera that are not visible for IE:

w\idth:16px; //works for Opera, not work in IE.

But this style rule is also visible for Firefox
Is there any way to define style rule which will work for Opera but
not for Firefox ?
Is this purely theoretical, or are you trying to solve a specific problem?
Targeting browsers is a tedious and unreliable practise, so when and where
you can I'd highly recommend finding a way for valid, normal CSS being
correct for all browsers. I usually adhere to that, save for occasionally
a very few MSIE<7 rules in MSIE conditionals. I've never encountered the
need to distinguish between Opera & FF (or FF & Safari or Opera & Safari
for that matter).
--
Rik Wasmus


Reply With Quote
  #3  
Old   
marss
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 07:13 AM



On Apr 30, 1:46 pm, "Rik Wasmus" <luiheidsgoe... (AT) hotmail (DOT) com> wrote:

Quote:
Is this purely theoretical, or are you trying to solve a specific problem?
Targeting browsers is a tedious and unreliable practise, so when and where
you can I'd highly recommend finding a way for valid, normal CSS being
correct for all browsers. I usually adhere to that, save for occasionally
a very few MSIE<7 rules in MSIE conditionals. I've never encountered the
need to distinguish between Opera & FF (or FF & Safari or Opera & Safari
for that matter).

It is the real project with the large stylesheet.
I agree that the difference between Opera and Firefox is not too
large, however it exist. Without specific adjusting for Opera it
creates an impression of slipshod work

Mykola
http://marss.co.ua


Reply With Quote
  #4  
Old   
John Hosking
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 07:30 AM



marss wrote:
Quote:
On Apr 30, 1:46 pm, "Rik Wasmus" wrote:

Is this purely theoretical, or are you trying to solve a specific problem?
Targeting browsers is a tedious and unreliable practise, so when and where
you can I'd highly recommend finding a way for valid, normal CSS being
correct for all browsers. I usually adhere to that, save for occasionally
a very few MSIE<7 rules in MSIE conditionals. I've never encountered the
need to distinguish between Opera & FF (or FF & Safari or Opera & Safari
for that matter).


It is the real project with the large stylesheet.
I agree that the difference between Opera and Firefox is not too
large, however it exist. Without specific adjusting for Opera it
creates an impression of slipshod work
Writing separate code for each browser gives me the same impression,
more quickly.

--
John
Trollin', trollin', trollin', keep those GGers trollin'...
The UIP: http://improve-usenet.org/


Reply With Quote
  #5  
Old   
marss
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 08:30 AM



On Apr 30, 3:42 pm, "Beauregard T. Shagnasty"
<a.nony.m... (AT) example (DOT) invalid> wrote:
Quote:
marss wrote:
I have an application which has to be rendered correctly in Firefox
and Internet Explorer.

(and you are worried about Opera's 1% market?)
For exUSSR Opera share is a little more.
I do not worry about Opera prospect, I worry about the task I 've
got

Quote:
Do you have those: //works for IE only, not work in Firefox.
lines in your stylesheet, or did you just type them that way in your
post?

If they are in the stylesheet, they are incorrectly formatted comments.
CSS comments are: /* works for IE only, not work in Firefox. */
Note trailing */
It is just the typo.

Mykola
http://marss.co.ua



Reply With Quote
  #6  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 09:32 AM



John Hosking wrote:
Quote:
marss wrote:

It is the real project with the large stylesheet.
I agree that the difference between Opera and Firefox is not too
large, however it exist. Without specific adjusting for Opera it
creates an impression of slipshod work

Writing separate code for each browser gives me the same impression,
more quickly.

Ah, but job security! ;-)

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #7  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 09:38 AM



marss wrote:
Quote:
On Apr 30, 3:42 pm, "Beauregard T. Shagnasty"
a.nony.m... (AT) example (DOT) invalid> wrote:
marss wrote:
I have an application which has to be rendered correctly in Firefox
and Internet Explorer.
(and you are worried about Opera's 1% market?)

For exUSSR Opera share is a little more.
I do not worry about Opera prospect, I worry about the task I 've
got

Do you have those: //works for IE only, not work in Firefox.
lines in your stylesheet, or did you just type them that way in your
post?

If they are in the stylesheet, they are incorrectly formatted comments.
CSS comments are: /* works for IE only, not work in Firefox. */
Note trailing */

It is just the typo.
Actually, you trimmed BTS's main point that apparently you missed.

<restored BTS quote>
Further, pixel perfect layouts are doomed to failure, especially
cross-browser, and even in different versions of the same browser. Learn
to be liquid.
</restored BTS quote>

No only cannot your not really control what browser your visitor will or
could use (although you can block them--bad idea) but you have not
control of fonts, resolutions, OSs, User Settings...

*pixel perfect layouts are doomed to failure*

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #8  
Old   
Bergamot
 
Posts: n/a

Default Re: GG Is there any way to define style rule which will work forOpera but not for Firefox ? - 04-30-2008 , 09:40 AM




marss wrote:
Quote:
Is there any way to define style rule which will work for Opera but
not for Firefox ?
You may be trying to fix the wrong problem. Post a URL, then maybe we'll
see a better way to accomplish whatever your goal is.

--
Berg


Reply With Quote
  #9  
Old   
Steve Swift
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 10:08 AM



Beauregard T. Shagnasty wrote:
Quote:
(and you are worried about Opera's 1% market?)
It's a well-known fact that the wealthier you are, the more likely you
are to use Opera. It's not known which is cause and which is effect.

--
Steve (Opera Lover) Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
  #10  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Is there any way to define style rule which will work for Operabut not for Firefox ? - 04-30-2008 , 10:16 AM



On Wed, 30 Apr 2008, Beauregard T. Shagnasty wrote:

Quote:
(and you are worried about Opera's 1% market?)
Porsche's market might be even less than 1% but many a company
will sure like to make business with Porsche owners.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.