Search code examples
cssopera

How to make CSS visible only for Opera


Is there a way to make some CSS rules visible only for Opera?


Solution

  • This hack works for the latest Opera:

     @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
           #id {css rule}
     }
    

    It doesn't touch any other browser as far as i tested, but this may be actual for several months, with web technologies boom etc.