> I have an application which has to be rendered correctly in Firefox
> and Internet Explorer. In order to distinguish css rules for these
[quoted text clipped - 10 lines]
> 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).

Signature
Rik Wasmus
marss - 30 Apr 2008 13:13 GMT
> 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
[quoted text clipped - 3 lines]
> 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
John Hosking - 30 Apr 2008 13:30 GMT
>> 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
[quoted text clipped - 8 lines]
> 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.

Signature
John
Trollin', trollin', trollin', keep those GGers trollin'...
The UIP: http://improve-usenet.org/
Jonathan N. Little - 30 Apr 2008 15:32 GMT
>> It is the real project with the large stylesheet.
>> I agree that the difference between Opera and Firefox is not too
[quoted text clipped - 3 lines]
> Writing separate code for each browser gives me the same impression,
> more quickly.
Ah, but job security! ;-)

Signature
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
> I have an application which has to be rendered correctly in Firefox
> and Internet Explorer.
(and you are worried about Opera's 1% market?)
> In order to distinguish css rules for these browsers I use following
> approach:
[quoted text clipped - 8 lines]
> 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 ?
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 */
Further, pixel perfect layouts are doomed to failure, especially
cross-browser, and even in different versions of the same browser. Learn
to be liquid.

Signature
-bts
-Friends don't let friends drive Vista
marss - 30 Apr 2008 14:30 GMT
On Apr 30, 3:42 pm, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalid> 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
[quoted text clipped - 3 lines]
> CSS comments are: /* works for IE only, not work in Firefox. */
> Note trailing */
It is just the typo.
Mykola
http://marss.co.ua
Jonathan N. Little - 30 Apr 2008 15:38 GMT
> On Apr 30, 3:42 pm, "Beauregard T. Shagnasty"
> <a.nony.m...@example.invalid> wrote:
[quoted text clipped - 15 lines]
>
> 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*

Signature
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Steve Swift - 30 Apr 2008 16:08 GMT
> (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.

Signature
Steve (Opera Lover) Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
marss - 30 Apr 2008 17:44 GMT
> 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.
Maybe, but it is not that case :)
I am not sure that users in ex-USSR are wealthier than the ones in UK
or USA. There has to be another reason. I think it was caused the fact
that up to 2000 Opera was trialware and had to be purchased after the
trial period ended. This did not embarrass users in Ukraine or Russia
where cracked software was widely spreaded but it could prevent
forming of the Opera fans community in more law-abiding countries when
Opera was on the rise.
I am not fan of Opera but I have a few friends and acquaintances that
very like it.
Mykola
http://marss.co.ua
Andreas Prilop - 30 Apr 2008 16:16 GMT
> (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.

Signature
In memoriam Alan J. Flavell
http://groups.google.com/groups/search?q=author:Alan.J.Flavell
Beauregard T. Shagnasty - 30 Apr 2008 17:26 GMT
>> (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.
Yes, I know that - yours and Steve's comments - and perhaps I expressed
the point badly. It was related only to a miniscule bit of pixels, which
my further comments addressed.
"Pixel perfect layouts are doomed to failure."
Since I use Opera about 75% of the time, I must be wealthy! ;-)

Signature
-bts
-Friends don't let friends drive Windows
> 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.

Signature
Berg
marss - 30 Apr 2008 17:12 GMT
> 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
Thank you for suggestion but I can't do this. The site requires
registration and it is not available for public now.
Besides, I do not want to make somebody do my own work. It seemed to
me that the simpliest way to accomplish my task was to write
additional condition for Opera. Of course, I can remake HTML, but it
is more laborious solution (the project is rather large and the place
where I have to amend is more than one).
So, before doing this I would like to know: "Is there any way to
define style rule which will work for Opera but not for Firefox?"
Of course, I prefer answer "Yes" with explanation :), but answer "No"
will be also good - at least I will know that my idea is wrong and I
have to try something else.
Mykola
http://marss.co.ua