Image hover over text
-
Hi folks. I’m a novice and I’m trying to redesign my work’s website using a WPFolio child theme.
I’ve been asked to make images popup when hovering over linked text and I’d like the images to pop up in a separate section of the page (instead of next to the mouse or directly over other text) similar to this website (hover over any of the names): http://www.probertsongallery.com/component/artists
I know their site is coded in Java but I’d rather do it in CSS. On another forum I found some code that does a similar image hover/popup(see bottom of post) but I don’t know how to adapt it properly to my WP code/theme.
I’m trying to get my page: http://66.147.244.117/~petleyjo/artists/ to behave like the Peter Robertson Artist gallery page.
I have all of my artists listed in
<p>tags in a “page” on WordPress and I don’t know if I have to change them to<li>for this to work. Or if this is even possible between the page html and my child theme’s css.
I have tried to change the class on my<p>tags for “Clayton Anderson” from<p class="thumbnail">to<p class="anderson">and set the CSS (in my child theme) to:p.anderson:hover {background-position: 0 0;} p.anderson span {background: url(images/bowen.jpg) no-repeat;} p.anderson:hover span {display: block;}but it doesn’t work. Can anyone help me?
CSS code I’m trying to work off of that does what I want my site to do but I don’t know how to adapt it:
[Code moderated as per the Forum Rules. Please use the pastebin]
[Please post code or markup snippets between backticks or use the code button.]
The topic ‘Image hover over text’ is closed to new replies.