Make a CSS tooltip follow its button in Phoenix Code
25 seconds · On-screen instructions
The trail-tooltip project is open to index.html in Preview Mode, with the CSS from the article copied. Follow the same steps in Phoenix Pro or Community (free).
Read the video’s on-screen instructions
- Hover over Trail grade. The hint starts too far left.
- Paste the anchor rules below the comment.
- Choose File → Save File.
- Hover again. The left edges line up.
- Select the 2 in the button’s margin-left rule.
- Type 4 and save. The hint moves with the button.
- Move the pointer onto the hint to keep reading.