CSS question - DIV content change on hover
CSS question - DIV content change on hover
Out of context: Reply #1
- Started
- Last post
- 13 Responses
- Continuity0
It _should_ be as simple as this:
div {
background: url(path/to/image.png) 0 0 no-repeat;
}div:hover {
background: url(path/to/hoverImage.png) 0 0 no-repeat;
}This isn't including any sort of transition animation, and it will be dependent on declaring a ID name for each block.
- Ditto the content of the DIV that contains your text.Continuity
- this is just image-swapping of the background... what about the paragraph / title?PonyBoy