Grow your CSS skills. Land your dream job.

Block Opera Browser

  • # February 25, 2013 at 5:10 am

    Hi ,
    i wanna know, is there a way to block a browser?
    specially “Opera”

    i tried some snip, but not work or blocked all browser.

    # February 25, 2013 at 5:13 am

    Is there a reason why you would want to stop a specific browser…it seems like an odd thing to do?

    Assuming I was using Opera…do you want to display a blank page, a message or re-direct somewhere else?

    # February 25, 2013 at 6:24 am

    Why would you prevent your users to browse with Opera?

    # February 25, 2013 at 6:34 am

    opera completely not compatible with my site (Template, css, some jQuery plugin and etc..) i tested in firefox, chrome, even IE, but only have a many problem with Opera. problems are very bad, for eg. when i opened the site with opera, after a little scroll down, template disappeared, just background left! or not support some css3 and jquery.

    i tried to compatible my site with opera but it didn’t.. so i decided to block opera and redirect users to a page with a message.

    - Thanks for reply

    # February 25, 2013 at 7:05 am

    http://api.jquery.com/jQuery.browser/

    # February 25, 2013 at 7:14 am

    can you explain more about this plugin?

    # February 25, 2013 at 7:18 am

    It’s jQuery….which you are already using.

    Apparently it’s been removed in 1.9 and replaced by a plug-in : http://jquery.thewikies.com/browser/

    # February 25, 2013 at 7:42 am

    If you want my opinion, blaming your users (blocking Opera is blaming users) because your site is badly developed (having a compatibility problem with a rendering engine is bad development) is kind of inappropriate.

    # February 25, 2013 at 7:50 am

    >If you want my opinion

    It’s the same as Hugo’s :)

    # February 25, 2013 at 8:12 am

    ok guys thanks, but still prefer block opera instead of that, so there’s no code for blocking?
    maybe i don’t this, but i want to know, is there any code for this ?

    # February 25, 2013 at 8:14 am

    Did you not check out the plug-in?

    You’d have to adapt the script to re-direct but that’s beyond my abilities.

    # February 25, 2013 at 8:26 am

    unfortunately i still not figure it out, sorry , need a little help
    i’m not familiar with js and jquery, if i load this:

    http://jquery.thewikies.com/browser/jquery.browser.min.js

    but… still cant understand what is this for.

    -

    maybe other way is fix that problem, with your help
    i think found cause the problems,
    when i open my site with opera a horizontal scrolling appear in bottom of page, i try to fix this with:

    overflow: auto; overflow-x: hidden;

    but nothing happen in Opera , and should take scroll to right for see template
    maybe this will be solve with css, i don’t know

    please see this image:

    http://uploadtak.com/images/h357_Untitled2.jpg

    # February 25, 2013 at 10:47 am

    Really, you should never block a specific vendor. It’s generally bad practice to do so. I’d never advise on how to block a browser; especially Opera. Opera has CSS3/HTML5 capabilities, so I couldn’t possibly imagine Opera giving you problems over another browser like IE. I’m actually interested on seeing your markup/website more than anything.

    Show us your website, then maybe we can resolve your issue. :-)

    PS, what happens if you remove that background image?

    # February 25, 2013 at 10:50 am

    Agreed. I’d like to see a live site.

    # February 25, 2013 at 3:38 pm

    Thanks guys, i solved some problems,
    funny, i added a rtl.css to my template, and css and template issue solved.

    i think there’s no more to block opera :)

    http://bazitarsnak.com

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".