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
1 Answer
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.
4 Comments
VIKASKUMAR SHANSETI
I want to add that p tag on mouse hover only through css
audittxl
stackoverflow.com/questions/5210033/… have a look at this
VIKASKUMAR SHANSETI
I want to add that <div> only through css like inserting text on image using only css
audittxl
Ok yes it is possible but it is really really bad practice and some browsers will not support it have a look at this: stackoverflow.com/questions/4879719/insert-html-from-css
HTMLcode?