Search Engine Optimization > Web Development > CSS help for Opera
CSS help for Opera
Posted by BenZ on February 9th, 2006

Hi everyone, I've recently finished a css site (www.blacktieskis.com)
and have found out that on the location site there is a 20px shift to
the leftin the main content area when viewed in Opera. I have tried
everything but I can't work out a filter or a hack that will allow it
to work in Opera as well as the other browsers.

Please help

Ben

Posted by Steve Pugh on February 9th, 2006

BenZ wrote:
Your doctype triggers quirks mode so browsers will tend to break and
bend the rules in various ways. I guess Opera is seeing rules for the
broken box model but applying them as if for the correct box model, or
maybe vice versa. Try in standards mode - then IE6+, Gecko and Opera
will all apply the correct box model and you only need to hack for
IE5.5-. In general its more future proof to put a hack between present
and old versions of the same browser than to hack between current
versions of different browsers.

Anyway, Opera 9 preview 2 displays the page okay. As Opera users tend
to upgrade quite quickly (and as 9 looks like real winner that should
be more true than usual) you could just leave it alone and wait for
Opera to catch up.

Steve


Funbolt.com - Entertainment portal, wallpapers, sexy celebs