I have a tooltip written purely in CSS.
I’ve got it working in FF but for some reason it falls short in chrome and my list doesnt appear in my span.
I’ve made a jsFiddle if anybody can see where im going wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Fiddle: http://jsfiddle.net/WW6MY/3/
Add a new element (
.tooltip-container). Set theposition:relativeCSS attribute, so that absolutely positioned child elements are positioned correctly. Move yourspanelement inside the anchor to this container, so that the anchors don’t interfere with each other.Finally, attribute the
:hoverpseudo-selector to this container element, so that the tooltip is display correctly.HTML:
CSS: