-1

Am trying to add the text on image when hovered using only css. But through out the internet am finding insertion through html and css

  • What is your `HTML` code? – Mohammad Usman Dec 22 '16 at 11:39
  • am keeping only image tag as because I want to add text also through css only. So am unable to find it – VIKASKUMAR SHANSETI Dec 22 '16 at 11:41
  • Questions seeking code help must include the shortest code necessary to reproduce it **in the question itself** preferably in a [**Stack Snippet**](https://blog.stackoverflow.com/2014/09/introducing-runnable-javascript-css-and-html-code-snippets/). See [**How to create a Minimal, Complete, and Verifiable example**](http://stackoverflow.com/help/mcve) – Paulie_D Dec 22 '16 at 12:55

1 Answers1

-1

Have you searched stack overflow thoroughly?

On my first search i found this: Text on image mouseover?

I am assuming this is what you want since you have not made your question clear!

Edit: Thanks to tiny more clarification is this what you want to do: Using only CSS, show div on hover over <a>

Further Edit:

So what you will do is change div to your id for your p. And change your a to img.

Community
  • 1
  • 1
audittxl
  • 41
  • 1
  • 12