W3C home > Mailing lists > Public > www-style@w3.org > January 2015

Re: Non-Background images with Hover ?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 9 Jan 2015 14:29:39 -0800
Message-ID: <CAAWBYDB77EPvC9o6bzEk7YmE334pKd2+wqx5Nqu4zvsY9q1rwg@mail.gmail.com>
To: Crest Christopher <crestchristopher@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Fri, Jan 9, 2015 at 1:53 PM, Crest Christopher
<crestchristopher@gmail.com> wrote:
> Tab Atkins Jr. said:
>> Crest Christopher said:
>>> Hi, can you use non-background images with pseudo-element:hover ?
>>
>> I don't understand what you're asking. Can you give an example?
>
> I want to use an <img> tag with :hover in conjunction with a sprite ?

No, you can't change what an <img> element displays with CSS.

~TJ
Received on Friday, 9 January 2015 22:30:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC