Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am beginer in creating of webpages and i would be grateful for an easy simple example of CSS tooltip on image with Html5 standard. I know there are some examples but they are kinda hard for me.
I know there are some examples but they are kinda hard for me.
Here is probably the simplest tooltip that takes advantage of the native title attribute of an element:
<style> p[title]:hover:after { content: attr(title); padding: 10px; background-color: white; position: absolute; } </style> <p title="I am a tooltip!">Hover over me</p>
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
I know there are some examples but they are kinda hard for me.So why would it be any easier here?