Hello All
I have a 'flyout' css menu which uses something like this:
[code=html]
<ul>
<li><a>head</a><div style="position :absolute;left:-10000;"><ul><li >more</li><li>even more</li></ul></div></li>
<li><a>head</a><div style="position :absolute;left:-10000;"><ul><li >more</li><li>even more</li></ul></div></li>
</ul>
[/code]
[code=css]
ul li:hover div {
left:0;
}
[/code]
So it works nicely in Firefox ;) I have given up with IE and written some javascript. My problem is Opera! I'm testing on Opera 9 and when I hover over the li, the div appears but it isn't left:0 and it is 'broken' up - so bits are visible, bits aren't.
I have other menus on almost identical setups and they work in Opera9. The error consistently appears on the same sections though.
Some things I've thought about:
z-index - well this isn't a problem - fine in FF and other parts of the page
positioning on parent elements - I have looked at this and on changing the li from relative to static, the error is fixed BUT the div is not left:0 it's left:auto.
left:auto - i've tried this but the div ends up in the wrong place
Any other ideas / known bugs. I don't want to marginalise opera users ;)
Thanks in advance
Henry
I have a 'flyout' css menu which uses something like this:
[code=html]
<ul>
<li><a>head</a><div style="position :absolute;left:-10000;"><ul><li >more</li><li>even more</li></ul></div></li>
<li><a>head</a><div style="position :absolute;left:-10000;"><ul><li >more</li><li>even more</li></ul></div></li>
</ul>
[/code]
[code=css]
ul li:hover div {
left:0;
}
[/code]
So it works nicely in Firefox ;) I have given up with IE and written some javascript. My problem is Opera! I'm testing on Opera 9 and when I hover over the li, the div appears but it isn't left:0 and it is 'broken' up - so bits are visible, bits aren't.
I have other menus on almost identical setups and they work in Opera9. The error consistently appears on the same sections though.
Some things I've thought about:
z-index - well this isn't a problem - fine in FF and other parts of the page
positioning on parent elements - I have looked at this and on changing the li from relative to static, the error is fixed BUT the div is not left:0 it's left:auto.
left:auto - i've tried this but the div ends up in the wrong place
Any other ideas / known bugs. I don't want to marginalise opera users ;)
Thanks in advance
Henry
Comment