rollover image in a div does not work
rollover image in a div does not work
am 13.10.2007 21:11:42 von Harry Bellafonte
Hi
I have menu list that are in div tags. I want an image to appear when
I move over the menu item or click on it. I am trying it with the html
code and css style below. It does not work, the image is not
appearing. What must I change in my html or css code?
div#menutitle a:active{background-image: url(/wps/wcm/connect/
button_rollover_state.jpg?);}
Re: rollover image in a div does not work
am 13.10.2007 21:28:43 von lws4art
Harry Bellafonte wrote:
> Hi
>
> I have menu list that are in div tags. I want an image to appear when
> I move over the menu item
^^^^^^^^^^^^^^^^^^^^^^^^^
> div#menutitle a:active{background-image: url(/wps/wcm/connect/
^^^^^^^^
The pseudo-class is :hover for a "mouseover"
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: rollover image in a div does not work
am 13.10.2007 21:38:05 von Harry Bellafonte
On 13 okt, 21:28, "Jonathan N. Little" wrote:
> Harry Bellafonte wrote:
> > Hi
>
> > I have menu list that are in div tags. I want an image to appear when
> > I move over the menu item
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^
>
> > div#menutitle a:active{background-image: url(/wps/wcm/connect/
>
> ^^^^^^^^
>
> The pseudo-class is :hover for a "mouseover"
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
Hi
I have changed the css to
div#menutitle a:hover{background-image: url(/wps/wcm/connect/
button_rollover_state.jpg?);}
but it still does not work.
Re: rollover image in a div does not work
am 13.10.2007 22:04:30 von Ben C
On 2007-10-13, Harry Bellafonte wrote:
> On 13 okt, 21:28, "Jonathan N. Little" wrote:
[...]
> div#menutitle a:hover{background-image: url(/wps/wcm/connect/
> button_rollover_state.jpg?);}
>
> but it still does not work.
Menutitle is a class not an id, so you need div.menutitle, not
div#menutitle. And you do want :hover.
Re: rollover image in a div does not work
am 13.10.2007 22:15:42 von John Hosking
Harry Bellafonte wrote:
> Hi
>
> I have menu list that are in div tags.
If it's alist, where are the
and - elements?
> I want an image to appear when
> I move over the menu item or click on it. I am trying it with the html
> code and css style below. It does not work, the image is not
> appearing. What must I change in my html or css code?
>
>
Maybe you'd prefer