Taco Fleur wrote:
OK, so opera isn't playing by the rules...

No browser yet released plays perfectly by the rules, so that shouldn't
come as a surprise.
You're not making use of all the rules either, or else you would have
provoked some nasty bugs in all browsers.

NOTE: I'm only testing in Opera's Window versions, and can only assume
that the same bug is present in Opera 9 on other OSes.

Can I change "padding: 0" to "padding: 0 0"?

I've gone like a madman through the site and changed all occurrences of padding: 0 to padding: 0 0 And I assume padding: 4px would become padding: 4px 4px, correct?

Wrong assumption. No need for, or use in, going mad and add a lot of
unnecessary fixes padding-fixes. Opera's weakness has nothing to do with
'padding' as such, and it will do just fine with one value.

Opera only need a few,'no-space' container-elements to start taking up
space of their own, in order to handle them correctly ... *not* all of
them.

In that page (www.pacificfox.com.au) it is only #container that Opera
"seems to" position incorrectly. I say "seems to" because it is
impossible to see exactly where that #container is since it doesn't take
up space and can't even be given a visible background to see where it
is. Only the elements inside #container give visible indications of
what's going on. Once the #container becomes visible, then the bug is gone.

That #container is collapsing to zero height originally, because _all_
elements inside it are positioned absolutely. That much reliance on
absolute positioning creates a rare combination, which is why I haven't
observed this bug in Opera 9 before. This bug doesn't exist in earlier
versions as far back as I can test.


Now, the suggested correction...
#container {padding: 1px 0;}
...makes #container 2px high all on its own. That's what Opera needs.


Alternatively: giving #container a 'height: 1px' or adding a border to
it, will have exactly the same effect. So will the addition of a normal
in-flow element of some non-zero size inside it, or even a non-breaking
space.
Any height larger than zero will be enough, and it simply doesn't matter
how high that #container is made in your page since the element is only
a base for absolute positioned elements.

regards
        Georg
--
http://www.gunlaug.no


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to