Adding text upon hovering over a picture
-
Hello, does anyone know how I can create text appear on an image after I hover over it? Thank you
The blog I need help with is: (visible only to logged in users)
-
Can you let me know which image? Generally this is pretty hard to do with CSS, but I’ll take a look.
-
Sure, I am thinking of doing it on the very top image of that page, here is the URL: http://imgur.com/a/chdjM.
This is hard with just CSS because we need to actually create the picture AND text together in Java/HTML first, and then separate the two components by hover action in the CSS, is that correct?
-
I’ve worked up this example, which creates text over the header image, which you can use as a guide, and just to see it is possible and how it works.
.header:hover:before { content: "This is some text"; position: absolute; color: #cc0000; font-size: 200%; }After adding and saving this, go to your main page and hover over the header area to see the text. It will appear at the left edge.
-
-
- The topic ‘Adding text upon hovering over a picture’ is closed to new replies.