0

I am wondering how to make an angled element that acts as an arrow, attached to a tooltip. I've seen this done by Google Accounts, and I have attached a screenshot. It appears they are achieving this with a couple of span elements.

I can't figure out from their HTML/CSS how they did it... My only idea is to use a CSS3 rotation on a regular div, or an image, but I'm guessing there's a more basic way.

Can anyone give me a hint? I'm not looking for a full solution, I'm just stumped about how to approach it. Also it's not about the tooltip itself, it's about that angled element.

enter image description here

EDIT: Here's a related question. They are using transparent borders, border-radius and box-shadows?

2
  • Take a look at Tooltipster source. I think it might have what you are looking for. Commented Mar 31, 2013 at 4:55
  • Hmm I'm looking at their little pointers... They also use 2 spans for it, but I can't tell from their CSS how it's done! Commented Mar 31, 2013 at 4:58

1 Answer 1

2

You can create it using image or manipulated span, I know facebook create it using sprite image, google and twitter using styled span, just make border transparent except the bottom one. this is twitter:

enter image description here

this is a tutorial.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.