![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 ? |
#3
| |||
| |||
|
|
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). |

#4
| |||
| |||
|
|
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 ![]() |
#5
| |||
| |||
|
|
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?) |

|
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 */ |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
Is there any way to define style rule which will work for Opera but not for Firefox ? |
#9
| |||
| |||
|
|
(and you are worried about Opera's 1% market?) |
#10
| |||
| |||
|
|
(and you are worried about Opera's 1% market?) |
![]() |
| Thread Tools | |
| Display Modes | |
| |