Firefox(3.5.7) handles differently from others (IE,Opera,Chrome) the following chain of styles, involving the use of background images to show a pushed appearance, when hovering, of a button composed of two images.
The html
and the CSS
In all browsers other than FF this works correctly: both background images in the left and right parts (or top and bottom, doesn't matter of course) of the button are correctly changed when hovering.
The only issue is with IE, that doesn't change the mouse pointer when hovering: that's why the [tt]cursorointer[/tt] spec.
FF doesn't recognize in any way the [tt]a:hover[/tt] parts. Any idea on how to solve this with FF?
Franco
: Online engineering calculations
: Magnetic brakes for fun rides
: Air bearing pads
The html
Code:
<span class=button>
<a href="some.htm">
<div class=button_left>Text1</div>
<div class=button_right>Text2</div>
</a>
</span>
Code:
.button_left{background:url('button_left.gif')}
.button_right{background:url('button_right.gif')}
a:hover .button_left{background:url('pushed_left.gif');cursor:pointer}
a:hover .button_right{background:url('pushed_right.gif');cursor:pointer}
The only issue is with IE, that doesn't change the mouse pointer when hovering: that's why the [tt]cursorointer[/tt] spec.
FF doesn't recognize in any way the [tt]a:hover[/tt] parts. Any idea on how to solve this with FF?
Franco
: Online engineering calculations
: Magnetic brakes for fun rides
: Air bearing pads