Previous Message
Next Message

Re: [css-d] Display image as background property for hyperlink

Sent by Porter Glendinning on 9 December 2002 22:10


At 04:35 PM 12/9/2002, Mark Newhouse digitized these thoughts:
>See also http://www.zeldman.com/ - he's got it working even back to Opera 5,
>as well as all other major browsers...

Note that those image links work by styling the anchors as block 
elements. (As Rijk said, Opera 6 doesn't do background images on inline 
elements.) Opera also didn't handle the background image specified in 
the :hover rule, and instead made the links' backgrounds disappear when 
moused over. We got around that problem by loading the active state 
images as the background of the div container for each link -- 
basically a background background -- which makes it appear as if Opera 
is performing the swap properly.

- Porter

+--------------------------------------------------------+
| Porter Glendinning      [EMAIL-REMOVED]  |
| Web/UI Commando            http://www.glendinning.org  |
+--------------------------------------------------------+
| Porter's Workshop - http://www.serve.com/apg/workshop/ |
+--------------------------------------------------------+
Previous Message
Next Message

Message thread: